Skip to main content

I have a workflow where I want to spawn multiple workflows underneath it.

 

Using K2 Designer, is there any way that I can force all sub-workflows from the parent-workflow to stop?

The one possible lead I discovered was the SmartObject

 

K2 ManagementWorkflowManagementManagementServiceStopProcessInstances

 

However, this requires the user to have Admin permissions against the workflow, which we cannot grant as it would allow them to do things like delete the entire workflow. Also, I tried creating another K2 Management service instance using Service Account credentials but it ignores this, and switches automatically to Impersonate.

 

 

 

I believe the only way I could have accomplished this is via custom development - perhaps creating my own web service that calls the K2 Management API using service account credentials.

As we aren't allowed use custom dev here, I used a workaround of getting the sub-workflow to check a flag daily. If flag=STOP then stop workflow.

Reply