A flow can be deployed as Web Archive or JAR. The important thing about packages is the presence of the JSL descriptor as an XML file. Here, you can see the structure of a Web Archive containing batches:
- WAR:
- Batch classes
- WEB-INF
- Classes
- META-INF
- Batch-jobs
- descriptorProcess.xml
- Batch-jobs
- META-INF
- Classes
- JAR:
- Batch classes
- META-INF
- Batch-jobs
- descriptorProcess.xml
- Batch-jobs
Be careful of the location of the XML file. The XML will not be imported by WildFly if it is put in a different directory. Pay attention must also be paid to the batch-jobs folder name. A different name will cause the workflow to be cancelled.