We need this functionality in order to simplify the client side
implementation. Otherwise, the client has to do multiple calls in order to
implement this scenario.

Nandika

On Thu, Dec 10, 2015 at 11:41 PM, Firzhan Naqash <[email protected]> wrote:

>
> 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
>
>
>


-- 
Nandika Jayawardana
WSO2 Inc ; http://wso2.com
lean.enterprise.middleware
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to