cancel
Showing results for 
Search instead for 
Did you mean: 

'Description' process variable

lossril
Champ in-the-making
Champ in-the-making
Hello,
I'm trying to create some generic process description.

Description is some template string defined in process definition with inclusion of process variable values. For example, "Vacation request. Vacation dates are ${startDate} - ${endDate}"

It should be created right after process creation and updated, for example, after every user task.

At first, I thought "Data Objects" tab in process definition properties in Designer would be perfect option, but the engine does not execute UEL expressions in it.

My second thought was to create some "definitionTemplate" string in Data Objects tab. It would contain the template. The next step is to write custom ActivitiEventListener which would parse this string and add some 'description' variable to the process instance. This method seems legit and I am going to try it. Several things are bothering me though. For example, the need to write(or add some third-party libs) custom UEL parser in my EventListener. Also, on what event type should listener fire up? ACTIVITY_STARTED? 

Any thoughts on how it should be done? Do other, more viable options exist to implement this stuff?
2 REPLIES 2

hari
Star Contributor
Star Contributor
Hi,

I think complete task listener on every user task should work. Have you evaluated this option for your scenario ?


lossril
Champ in-the-making
Champ in-the-making
Yes, I've written the listener which does stuff on task completion and it works, but this feels like workaround. Still hoping that data properties will be able to understand UEL expressions.