SO is moving from BPMN Script Tasks implemented in Groovy scripts to BPMN Service Tasks. This process started as part of 1806 Code contributed to SO during Casablanca Time-frame by AT&T.
How to execute Java from BPMN
- Create a Task
Change the type of the Task to service task by clicking on the wrench and selecting "Service Task"
Change task properties Detail:Implementation to 'Expression' and enter expression following pattern:
'
${AAIQueryTasks.queryNetworkVpnBinding(InjectExecution.execute(execution, execution.getVariable("gBuildingBlockExecution")))}
'
where AAIQueryTasks is the Java Class and queryNetworkVpnBinding is the method.