business process image wrong colors

32 views
Skip to first unread message

Ibrahim Sawalha

unread,
Feb 11, 2021, 7:44:38 AM2/11/21
to jBPM Usage

Dear all,

 

We are trying to display the business process image on the browser using the REST Service (/runtime/DEPLOYMENT_ID/process/PROCESS_DEFINITION_ID/image/PROCESS_INSTANCE_ID)

 

We have noticed that all “finished processes” are colored in Red in the generated SVG file while its colored in Gray when displaying it inside the jbpm-console “Process Model”

 

How can we manage the SVG coloring in proper way?

Inside the jbpm-console “Process Model”

jbpm-console.png

The generated SVG file:

 SVG_screenshot.png

Alex Porcelli

unread,
Feb 11, 2021, 9:56:31 AM2/11/21
to Ibrahim Sawalha, jBPM Usage
Process Instances visualization grey the boxes that were already processed by the engine.

Regards,
___________________
Alex Porcelli
F: +1 (978) 844-8695
https://porcelli.me


--
You received this message because you are subscribed to the Google Groups "jBPM Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-usage+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-usage/80c7c861-07cc-40cc-ab30-f34312985fcbn%40googlegroups.com.

David Goldstein

unread,
Feb 11, 2021, 11:23:21 AM2/11/21
to jBPM Usage
In the REST API you can set the colors for a few of the types of lines, but I don't think these particular colors can be immediately changed 

Ibrahim Sawalha

unread,
Feb 12, 2021, 2:52:08 AM2/12/21
to David Goldstein, jBPM Usage
I believe there is a setup somewhere in the project inside the engine but am not sure if this is true or not.
I need to know if there is a place to setup these colours

You received this message because you are subscribed to a topic in the Google Groups "jBPM Usage" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jbpm-usage/WWWaAPbIzls/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jbpm-usage+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-usage/2b37edaa-8d87-4fc0-8c75-a0faf7e2144fn%40googlegroups.com.

balakri...@gmail.com

unread,
Feb 15, 2021, 11:03:10 PM2/15/21
to jBPM Usage
>>>We are trying to display the business process image on the browser using the REST Service 
>>>(/runtime/DEPLOYMENT_ID/process/PROCESS_DEFINITION_ID/image/PROCESS_INSTANCE_ID)

What's the version of kie-server that you are using? The API path that you've mentioned seems to be incorrect. Please take a look at this document[1] for the correct API path[2]. Also, you can specify the value for the parameters svgActiveBorderColor, svgCompletedBorderColor, svgCompletedColor in the same API to specify the required colors for the nodes/borders. 

[2] GET /server/containers/{containerId}/images/processes/instances/{processInstanceId}

Ibrahim Sawalha

unread,
Feb 20, 2021, 8:55:08 AM2/20/21
to balakri...@gmail.com, jBPM Usage
Unfortunately, we did not use the kie-server in this project instead we used the REST Services provided by the jbpm-console.war application.

The main issue is that the images colored gray without any problems, but this project stopped coloring the visited tasks by gray instead it started coloring it in RED.

I am afraid that someone from the team or the client has changed settings in the project or on the Workflow Engine... I have tried to look for the configurations on the project and it was identical from other Working projects.

Is there any configurations for coloring the visited tasks in the jbpm-console.war application?


--
You received this message because you are subscribed to a topic in the Google Groups "jBPM Usage" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jbpm-usage/WWWaAPbIzls/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jbpm-usage+...@googlegroups.com.

balakri...@gmail.com

unread,
Feb 21, 2021, 11:19:31 PM2/21/21
to jBPM Usage
Looks like you are using jbpm 6.x. If so, then the only seems to be changing the colors defined in the following class of your jbpm engine. You may check if it has been changed in your setup. 

Ibrahim Sawalha

unread,
Feb 22, 2021, 1:26:19 AM2/22/21
to balakri...@gmail.com, jBPM Usage
Thanks for your answer.
I am going to check the deployed jar file and come back to you with my discoveries. 

Best Regards,
Ibrahim Sawalha
Jordan +962 795070755
ibrahim...@gmail.com | Blog
P Please consider the environment before printing this email 



Ibrahim Sawalha

unread,
Mar 28, 2021, 4:04:56 AM3/28/21
to Ibrahim Sawalha, jBPM Usage

Dear all,

 

It seems that we did not deliver our thoughts in a clear way.

Here is the detail issue:

 

We have a business process deployed on a JBPM server (version 6.5).

 

Case 1: when displaying the business process image from the jbpm-console, it displays the process image colors as expected (coloring the visited “finished” processes in Gray, and the “current/in-progress” human task bordered in Red).

 

Case 2: on other hand when displaying the business process image using the REST Service as mentioned in the note below , it displays all visited “finished” processes bordered in Red in the process image.

 

Note that in both cases above we are requesting the same “process instance id” without having any changes on the instance process id.

 

So we are wondering why the REST outcome has different colors from the jbpm-console.

 

- We use the below REST Service to display the business process image on the browser:

(/runtime/DEPLOYMENT_ID/process/PROCESS_DEFINITION_ID/image/PROCESS_INSTANCE_ID)

 

 

Case 1:

image.png


 

Case 2:

image.png


 

 

Best Regards,
Ibrahim Sawalha
Jordan +962 795070755
ibrahim...@gmail.com | Blog
P Please consider the environment before printing this email 


Reply all
Reply to author
Forward
0 new messages