Details
-
Bug
-
Resolution: Done
-
Blocker
-
6.3.0.GA
-
CR1
-
Description
Cloned from RHBPMS-4073. But this description focuses on the actual issue to be fixed.
You can get Task definition by the kie-server REST API http://localhost:8080/kie-server/services/rest/server/containers/<container-id>/processes/definitions/<process-id>/tasks/users
The response would be like this:
<user-task-definitions> <task> <task-name>test</task-name> <task-priority>0</task-priority> <task-created-by>java.lang.String</task-created-by> <task-skippable>false</task-skippable> <associated-entities> <associatedEntities>anton</associatedEntities> </associated-entities> <task-inputs> <entry> <key>Description</key> <value>java.lang.String</value> </entry> <entry> <key>CreatedBy</key> <value>java.lang.String</value> </entry> <entry> <key>TaskName</key> <value>String</value> </entry> <entry> <key>Content</key> <value>java.lang.String</value> </entry> <entry> <key>Skippable</key> <value>Object</value> </entry> </task-inputs> <task-outputs/> </task> </user-task-definitions>
But <task-skippable> value is always "false" even if you set "true" in bpmn2 file.
The logic actually compares "true" with the data type of Skippable (= Object)
https://github.com/droolsjbpm/jbpm/blob/738d191d338dab3e8baceeaf6fe31556b81fe07f/jbpm-services/jbpm-kie-services/src/main/java/org/jbpm/kie/services/impl/xml/ServicesProcessDataEventListener.java#L98
task.setSkippable("true".equalsIgnoreCase(inputParams.get("Skippable")));
Attachments
Issue Links
- clones
-
RHBPMS-4073 Task properties doesn't include values - only data types
- Verified