'Description' process variable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-13-2016 08:25 AM
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?
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?
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2016 03:24 AM
Hi,
I think complete task listener on every user task should work. Have you evaluated this option for your scenario ?
I think complete task listener on every user task should work. Have you evaluated this option for your scenario ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2016 07:22 AM
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.
