1) If a single activity object has multiple activity.started event listeners, and the maxexecutiontime is set to X seconds, does each activity have 10 seconds to complete, or all must be completed before maxtime is reached?
2) Similar question, if the same activity object has 2 started event listeners, does the activity.completed event fire after each thread completes their activity, or after all threads complete their activity?
3) Are there means of exposing and editing the activity queue via automation?
**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.
The MaxExecutionTime is from when the Activity starts and all automations triggered by the Activity must complete within that timeframe. Basically, the threads spawned by the Activity will only live until the MaxExecutionTime is exceeded.
The Activity Completed event fires when all threads spawned by the Activity have ended.
The Interaction Closed method has a signature which allows you to cancel any activities that were queued with the Interaction key. Additionally, you can use the GetTable method of the InteractionManager to get the current queued items and loop through those and perform a CancelActivity on each one.