Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-1911

REST service task does not work out of the box

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.3.0.GA
    • 7.2.1.GA
    • jBPM Designer
    • Local and on Openshift

    • Workaround Exists
    • Hide
      • In the project goto settings -> Deployments -> Work Item Handlers
      • Add Work Item Handler Name: Rest , Value: new org.jbpm.process.workitem.rest.RESTWorkItemHandler()
      • Save and then redeploy

      Found solution from this post https://developer.jboss.org/thread/275850

      Show
      In the project goto settings -> Deployments -> Work Item Handlers Add Work Item Handler Name: Rest , Value: new org.jbpm.process.workitem.rest.RESTWorkItemHandler() Save and then redeploy Found solution from this post https://developer.jboss.org/thread/275850
    • Hide
      • Create new project
      • Add asset -> Business Process, package com.myspace.myproject
      • Add process variable name: output, Data Type: Object
      • Add start node, REST service task, end node
      • Assign REST service task the following constants
      • ContentType "application/json"
      • Method "GET"
      • URL "https://jsonplaceholder.typicode.com/posts"
      • Assign the Result to the output variable
      • On Exit Action
      • print(output)
      • javascript as language
        Deploy the project and Run
        Error is "Could not find work item handler for Rest"
      Show
      Create new project Add asset -> Business Process, package com.myspace.myproject Add process variable name: output, Data Type: Object Add start node, REST service task, end node Assign REST service task the following constants ContentType "application/json" Method "GET" URL "https://jsonplaceholder.typicode.com/posts" Assign the Result to the output variable On Exit Action print(output) javascript as language Deploy the project and Run Error is "Could not find work item handler for Rest"

      By default the REST service task does not work when deployed. The work item handler has to manually added

              swiderski.maciej Maciej Swiderski (Inactive)
              mechevarria Michael Echevarria (Inactive)
              Kirill Gaevskii Kirill Gaevskii
              Kirill Gaevskii Kirill Gaevskii
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: