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

Not able to download process image through kie-server REST API if its not in defaultPackage

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.4.0
    • 6.3.0.GA
    • Kie-Server
    • None
    • ER2
    • Workaround Exists
    • Hide

      To download process image through kie-server's REST API it should be exist under default package(/src/main/resources). To move process image under default package we have to clone repository into file system, move process image to defaultpackage(/src/main/resources) and push the repository.
      Git commands:
      ================
      git clone ssh://bpmsAdmin@localhost:8001/repository1
      git add .
      git commit -m "commit message"
      git remote add origin ssh://bpmsAdmin@localhost:8001/repository1
      git push origin master -f
      ==============

      Show
      To download process image through kie-server's REST API it should be exist under default package(/src/main/resources). To move process image under default package we have to clone repository into file system, move process image to defaultpackage(/src/main/resources) and push the repository. Git commands: ================ git clone ssh://bpmsAdmin@localhost:8001/repository1 git add . git commit -m "commit message" git remote add origin ssh://bpmsAdmin@localhost:8001/repository1 git push origin master -f ==============
    • Hide
      • create new Process image under package(com.sample)
      • Design simple process definition and save it, process image will be created under com.sample package.
      • Build and deploy project, configure container and start kie-container.
      • Use below REST API to down process image:
        ~~~
        curl -o ProcessImage.svg -H 'Content-type:application/svg' -u 'bpmsAdmin:admin12@' 'http://localhost:8080/kie-server/services/rest/server/containers/ {ContainerID}

        /images/processes/

        {ProcessDefinitionID}

        '
        ~~~
        Example:
        ===========
        curl -o ProcessImage.svg -H 'Content-type:application/svg' -u 'bpmsAdmin:admin12@' 'http://127.0.0.1:8080/kie-server/services/rest/server/containers/TestContainer/images/processes/NewProj.TestProcess'
        % Total % Received % Xferd Average Speed Time Time Time Current
        Dload Upload Total Spent Left Speed
        0 0 0 0 0 0 0 0 -::- -::- -::- 0
        ============

      Show
      create new Process image under package(com.sample) Design simple process definition and save it, process image will be created under com.sample package. Build and deploy project, configure container and start kie-container. Use below REST API to down process image: ~~~ curl -o ProcessImage.svg -H 'Content-type:application/svg' -u 'bpmsAdmin:admin12@' 'http://localhost:8080/kie-server/services/rest/server/containers/ {ContainerID} /images/processes/ {ProcessDefinitionID} ' ~~~ Example: =========== curl -o ProcessImage.svg -H 'Content-type:application/svg' -u 'bpmsAdmin:admin12@' 'http://127.0.0.1:8080/kie-server/services/rest/server/containers/TestContainer/images/processes/NewProj.TestProcess' % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 - : : - - : : - - : : - 0 ============

      Not able to download process image through kie-server's REST API if its not in defaultPackage

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

              Created:
              Updated:
              Resolved: