cancel
Showing results for 
Search instead for 
Did you mean: 

How to build a 'execution' object, like the one used in Script Tasks?

edufrazao
Champ on-the-rise
Champ on-the-rise
Hi folks. I'm building a generic Form API that can listen to events, declare validations, using JavaScript.
On ScriptTasks theres an implicit global object called "execution", that comes with useful methods.
Where can I find more information about it? I want to explore its API, and if possible inject an instance of it on my Script API, or at least implement another one with similar contract.

Thanks.
3 REPLIES 3

trademak
Star Contributor
Star Contributor
Hi,

It's the ActivityExecution or ExecutionEntity object.

Best regards,

Hi trademark. Can I get it from a Task or HistoricTaskInstance object?

jbarrez
Star Contributor
Star Contributor
Yes, both store an executionId, that links to an Execution object.
An execution in Activiti is a pointer to where you are in the process instance.
If your process instance is active in multiple steps at the same time, you'll have multiple executions.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.