-
Notifications
You must be signed in to change notification settings - Fork 0
Home
The BPMN-SkillExecutor consists of a main Java class and three auxiliary classes which are only used to store information.
First some hard coded variables are defined. Next, the information from the BPMN process is stored in a SkillParameter class via the "input_msg" variable. With the help of a Websocket.IO the status of the skill is monitored. As soon as the status changes to "Complete", "Stopping" or "Aborting", the skill outputs are queried with an http request. If the skill could be executed without problems, the method is terminated and the BPMN process is continued. If an error status occurs, an error message is returned to the BPMN process.
The class must be compiled as a .jar file. In a Maven project, this can be done using Run as: Maven Install. The packaging can be specified in the POM file. It may be necessary to switch from .war to .jar here. It is also important that the used dependencies in the MyJavaDelegate class are also saved in the lib folder of the apache server in the Camunda folder. The compiled MyJavaDelegate class must also be saved here.