cancel
Showing results for 
Search instead for 
Did you mean: 

Highlighting current Task,

amir_kourani
Champ in-the-making
Champ in-the-making
Anybody know a simple way to highlight the current Activiti (5.11) Task. I have used the code written in activiti explorer, but the red box was shifted from the current task.
3 REPLIES 3

frederikherema1
Star Contributor
Star Contributor
What do you mean "shifted from the current task"? What code are you actually calling?

amir_kourani
Champ in-the-making
Champ in-the-making
I used the code in "org.activiti.engine.test.spi.repository.diagram.ProcessDiagramRetrivalTest".
please note that what i want is highlighting the current task so i will be glas  if there is another method.
is there way to transform the "ProcessDefinition" into "ProcessDefinitionEntity",because there is a class called "ProcessDiagramGenerator" hava a method generateDiagram that take a list of highlightedActivities , but it take ProcessDefinitionEntity instead of ProcessDefinition.
Pre thanks , and sorry because i am newbie to activiti and workflow in general.

frederikherema1
Star Contributor
Star Contributor
Use RepositoryServiceImpl and cast the ReadOnlyProcessDefinition to the required impl/entity type:

  public ReadOnlyProcessDefinition getDeployedProcessDefinition(String processDefinitionId) {