Hi Thomas,
As I understood you are trying to set some process variables as local
variables for a task.
I can think of two options,
1. Define form properties of the task with the same process variable
name. (I'm not sure whether the scope will be local or not, haven't tried)
2. Add a task listener and get the variable from the execution and set
as a local variable.
execution.setVariableLocal(varName, value);
Regards,
Vinod
On Tue, Sep 12, 2017 at 2:04 PM, Thomas LEGRAND <
[email protected]> wrote:
> Hello everybody,
>
> Do you know if it is possible to set local variables to a User task
> automatically by using existing global variables?
>
> My use-case is the following:
>
> I have a process where you have to define some variables to create an
> instance. The first task is a user one in which I would like to set some
> local variables with some of the values passed during the creation of the
> instance.
> Then, I could query tasks with specific criteria via the endpoint
> /bpmn/query/tasks by using those local variables (because I can't filter on
> GLOBAL variables).
>
> I know we can define local variables to a user task with the REST API but
> that would mean that this is not automatically done with the param I set
> during the creation of the instance.
>
> Can you help me, please?
>
> Regards,
>
> Thomas
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
--
Vinod Kavinda
Senior Software Engineer
*WSO2 Inc. - lean . enterprise . middleware <http://www.wso2.com>.*
Mobile : +94 (0) 712 415544
Blog : http://soatechflicks.blogspot.com/
[image: http://wso2.com/signature]
<http://wso2.com/signature>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev