How do you get an IPC Workflow to start in the security context of the K2 service

  • 21 March 2019
  • 5 replies
  • 31 views

In K2 5 how do you get an IPC  workflow to start in the security context of the K2 service account , mine start in the security context of the originator , Is there an option to specify the security context

 


5 replies

Userlevel 6
Badge +16

Hi,


 


Perhaps, you can set Run As for sub workflow step in the K2 Management.


thanks

The step that calls the IPC process does not show in the 'Run As' listing.

 

Any idea of what to do?

 

I am trying to start an IPC  the originator does not have permission to start but needs approval first through a parent workflow.

I then want to run the IPC as the system account.

Userlevel 4
Badge +14

Did you ever get around this?

Regards

Vernon

 

Userlevel 3
Badge +10

It does not look like it is configurable in the ‘Call Sub Workflow’ step or after it is deployed.  Perhaps creating an advanced SmartObject that uses the following object/methods will start the Workflow as K2 service account:

  • K2 Management (service) > Workflow > Client > ManagementService > StartProcessInstance(ProcessInstance ProcessInstance, Boolean Sync)
  • K2 Management (service) > Workflow > Client > ManagementService > ProcessInstance (for serializations)

Reply