#Activity

Get activityInstanceId to use in custom connector

Hi,

I need to get de activityInstanceId to use in a Custom Connector. For that, I create a process variable with default value a groovy script with "activityInstanceId". That process variable is used to input of my own connector. When I get de value of activityInstanceId returns -1. Can someone help me?

Here is the print of Process Variable

Here is the print of Custom Connector

Thanks,

Diana

Update Case and Activity after successful PUT state not changing

Hello,

I am using rest API and I have a problem changing the state of case and activity. Also, I am in need of information or code snippet on how to claim the task on JavaScript.

I use Living Application example but not able to claim the Human task, Query Activity, and Case State after the update,

For now, I just can make the activity Completed, but when I try another state, the response gives 200 but state activity remains on executing. Please clear me what is the difference between this state executing and state that I want to assign.

Notifications