When trying to deploy a composite with a BPEL flow, some Business Rules and a Human Task (or two) we ran in errors
Invalid task definition. The task definition at CoreModulesDomain/Approve#####t!1.0*soa_6df02ede-80c6-4302-b96d-c9648598713a/ApproveTask does not conform to the task definition XML schema definition. The task definition is associated with workflow CoreModulesDomain/Approve#####!1.0*soa_6df02ede-80c6-4302-b96d-c9648598713a/ApproveTask. The errors are [2]: Element not completed: 'stage' at line -1 at column -1. Make sure that the task definition conforms to the task definition XML schema definition.v . [01:23:17 PM] Check server log for more details. [01:23:17 PM] Error deploying archive sca_Approve########_rev1.0.jar to partition "CoreModulesDomain" on server soa_server1 [ASG597058:8001]
The problem was with the BPEL.task artifact and if we look at the line “Element not completed: ‘stage‘ at line -1 at column -1” It tells us that something with a “stage” is not defined well. We looked back in our task and noticed that we had not clearly defined the stages in the “Assignment” menu item. So to fix this issue, correctly set up the Users, Groups etc for the Approval and the Stages for the approval and the User, Groups etc for “Errors” and “Reviewers”.
Step 1. We fixed the Approval Task
Step 2. We fixed the Errors and Reviewers