Stopping a process using updateProcessInstanceStatus

Hello:

I’m trying to code a service to stope a process programatically using
pub.monitor.integrationProcessMonitoring:updateProcessInstanceStatus

The process is defined in Designer and is called PortInBP

The problem I find is that when calling the service updateProcessInstanceStatut I get an exception:

if I set the ProcessKey as PortInBP/PortInBP I get
Input string has invalid/special characters: processKey: /

if I set the ProcessKey as PortInBP I get
Process Key does not exist in Process Definition table: PortInBP

The ProcessKey must be PortInBP/PortInBP (according to getInstanceList)

So I don’t know if it’s a bug in the service or something I misunderstood.

Thanks
Edgardo

Hi,

Did you find the solution for this problem…??

Thanks…!

Carlos Echeverría

Yes I use
pub.prt.admin:changeProcessStatus with
action=CANCEL
ProcessInstanceId=instance id
ProcessIteration=iteration

the other parameters are optional