execute workflow from java enterprise

Printer-friendly version

Hello,
I wuold like to create a system to execute a yawl workflow from Java Enterprise.
I created a Servlet that connect to the engine with admin credentials and launch the workflow instance using InterfaceB_EnvironmentBasedClient. The first work item of the workflow is offered to users with 'R' role.
Now I would like to create a new Servlet that allows an user with 'R' role to connect to engine with his credentials and to execute the workitem.
How can I do?

thanks!

You can create a class that extends from InterfaceBWebsideController that will receive the enabled work item announcement, and then you can route it as needed. Or, you can connect to the resource service and take advantage of its functionality via its APIs - take a look at WorkQueueGatewayClient and ResourceGatewayClient.