Question


Allied Solutions
US
Last activity: 6 Nov 2018 20:02 EST
Activity Still Requiring Interaction after attribute changed to False
I'm testing the use of activities without having an interaction active/started. In my test project, I am using the provided activity (AddPlan) text found in the default XML. I've changed the RequiresInteraction value to False, but I am still receiving the error message show.
Note: I have tried this with other XMLs and still receive the error. For testing purposes, I'm using the XML data found in the comment section of the default XML.
Visual Studio Professional 2015 with Pega plugin .1030
Thanks
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution


Allied Solutions
US
After opening a support ticket, it appears the support team has confirmed my original resolution.
"I've talked to one of our developers to confirm that you do need to start an interaction in order to start an activity. The property that you set to false allows you to start the activity with out an active interaction."


Allied Solutions
US
I figured it out. Changing the activity's attribute gives the ability to start an activity for a non-active key. You cannot start an activity without an interaction being created at least.
i.e.: keyA is started. followed by keyB. KeyB is the active key, but you can start an activity for keyA by setting the attribute value to false.
Edit: this is wrong per the Pega Admin


Pegasystems Inc.
US
This is not true. You can definitely start an activity without an interaction. I believe the issue you were experiencing was that the changes you made to the file were not being captured when you ran the project again. I would suggest closing everything out and re-opening the project for this.


Allied Solutions
US
I gave it another shot. Same issue.
Please, see the attached screenshot.
Steps performed:
1. Added new activity called Test. You can see before and after XML in screenshot
2. Saved and refreshed IntMgr config file paths
3. Close Solution/Reopened Solution
4. Clean/Build No issues
5. Ran solution with StartActivity() - Asks for Key
6. Ran solution with StartActivityNowForKey() - Gave Test key- Says cannot be ran without Interaction


Allied Solutions
US
Still looking for solution.


Fifth Third Bank
IN
Hi Tyler,
Long back I also faced similar kind of issue and found the following solution.
-> change some property of the file where the activity is declared (like Global Component) and save the file.
-> and revert back the setting and save the fail again.
This solved the problem.
Hope this will work.
Thanks,
Harish


Pegasystems Inc.
US
Documentation indicates that StartActivity() was replaced by Start(). Do you have a version with this change? That might be the source of the problem.


Allied Solutions
US
We have upgraded our 1030 plugin version to 1076 and we are still unable to start activities without an interaction before. I have performed the steps recommended by Harish to ensure changes to the XML are happening.
Accepted Solution


Allied Solutions
US
After opening a support ticket, it appears the support team has confirmed my original resolution.
"I've talked to one of our developers to confirm that you do need to start an interaction in order to start an activity. The property that you set to false allows you to start the activity with out an active interaction."