I have been creating a project on camunda bpmn in eclipse.While creating the business process diagram , i created a start event , a service task , then an exclusive gateway and then an end event.
I have attached a class with the service task in which i am checking the value of a variable as passed by the user in the form attached with the start event.
But after the value is checked i want to pass true if the value is valid or false if the value is null to the exclusive gateway.
But i can not understand how to pass value from the class attached with the service task to the gateway.
In the class attached with the service task i have used java delegate service method.
Thanks.
In the twitter example, they have used a user task and hence are providing the value to the exclusive gateway.
What I need is, that a class must execute through a service task and that class should provide the condition for the exclusive gateway.
For that in the class I set yes/no condition for a variable using java delegate.
I am not understanding how to pass it to the exclusive gateway?
I am doing the same as suggested by you. But I am getting the following error after deploying the application:
Cannot instantiate process definition : condition expression returns non-boolean: result has class java.lang.String and not java.lang.Boolean
I am not getting the reason for the above error.
The code worked out.
Thanks a lot for all your support. :)
Regards,
Priyanka