4 Replies Latest reply on Feb 11, 2015 8:08 AM by swiderski.maciej

    Generate Process Model image

    eshevchenko

      Hello! Does anybody know how to generate process model image from custom application? Fits any way, via API or iframe from kie-workbench(see pic).processmodel.jpg

        • 1. Re: Generate Process Model image
          eshevchenko

          Maybe I should try to rephrase.

           

          I would like to have ability to setup, run and observe process execution from my web-based application.

          What have been done:

          I have implemented predefined set of my custom work items handlers.

          I have run kie-workbench with WildFly container.

          I have implemented integration with kie-workbench in embedded mode.

           

          So I have ability to configure and start process from my application.

          But when  the process  is started, I would like to have ability to display Process Model for observing process state.

          This functionality was done in kie-worbench(Process instances -> Select Instance -> Process Model  - Sample image was attached to the first message in this discussion.), but i would like to reuse it in my app.

          According to my business requirements for application, I can't give access to kie-workbench admin console.

           

          So, how can I display model for already running process in a custom web-based application?

          • 2. Re: Generate Process Model image
            swiderski.maciej

            the process model is actually not image but it process rendered in read only mode by designer. Currently there is no option besides embedding designer into your application. Further we could provide a way (like static link) to display the process as an iframe option but that would require that kie-wb has exactly same processes available as custom app.

             

            HTH

            • 3. Re: Generate Process Model image
              eshevchenko

              Thanks Maciej for your answer.

              It does not matter for me to get process model exactly as image.

              It would be satisfactory to get model via iframe.

              Actually my custom app has override appropriate war of kie-workbench distribution, so I think it shouldn't be an issue to has exactly same processes as custom app.

              If I understand correctly, there wasn't created feature request for this functionality.

              Should I create it by myself?  I would like to follow when this functionality will be done.

              • 4. Re: Generate Process Model image
                swiderski.maciej

                sure, please file a feature request as jira issue. Moreover feel free to start on it as contribution is more than welcome

                 

                HTH