Uploaded image for project: 'JBoss BPMS Platform'
  1. JBoss BPMS Platform
  2. RHBPMS-4077

[GSS] (6.3.z) task-skippable value is wrong in kie-server REST API "/tasks/users"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 6.3.2
    • 6.3.0.GA
    • Kie-Server
    • CR1
    • Hide
      • Create a process with a Task with Skippable = true in business-central
      • Build the project, create/start a Container for the project in kie-server
      • Call the REST API
        http://localhost:8080/kie-server/services/rest/server/containers/<container-id>/processes/definitions/<process-id>/tasks/users
        
      • Confirm the value of <task-skippable>
      Show
      Create a process with a Task with Skippable = true in business-central Build the project, create/start a Container for the project in kie-server Call the REST API http://localhost:8080/kie-server/services/rest/server/containers/<container-id>/processes/definitions/<process-id>/tasks/users Confirm the value of <task-skippable>

    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

          Activity

            People

              swiderski.maciej Maciej Swiderski (Inactive)
              rhn-support-tkobayas Toshiya Kobayashi
              Karel Suta Karel Suta
              Karel Suta Karel Suta
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: