Hi,

Currently in the BPMN Rest API, process instance start operations are not
conditional. But there are occasions, process instances  should not be
initialized when ever there is a already created instance with same state (
Same variable values).

Therefore, in order to perform checked instance creation, we can add new
json property "*skipinstanceCreationIfExist*". By default this property is
false and if the request set it to true, this will search for instance
variables mentioned in the query.

 If instance is found it will be returned back to the user or else new
instance will be created.

{
   "message":"star

   "variables": [
      {
        "name":"productID",
        "value":"pid123456"
      },

      skipInstanceCreationIfExist:true
   ]
}

Any thoughts/suggestions are welcome,



Regards,
Firzhan
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to