Variable Parameters for SetActivityStreamListener
Happy New Year, all!
I’ve got a SetActivityStreamListener associated with a User Task that is supposed to capture Comments from specific users since a previous status change. Problem is, I need to dynamically define the user list and the status. But it doesn’t look like I can assign variable values to the specification fields, as the simplified version following tries to do with ${previousStatus}
<activiti:taskListener event="create" class="com.collibra.dgc.workflow.api.listener.SetActivityStreamListener"> <activiti:field name="startOnStatusChangeFrom"> <activiti:string><![CDATA[${previousStatus}]]></activiti:string> </activiti:field> <activiti:field name="categories"> <activiti:string><![CDATA[COMMENT]]></activiti:string> </activiti:field> </activiti:taskListener>
I’m considering creating a preceding script task that looks at the activity stream and dynamically generates content for a text field in the user task, but this seems like I re-inventing the wheel.
Are there other, simpler options?
Tom Friesen
Posted 3 years ago · Edited 1 year ago·Last reply 3 years ago
3 comments
georgecheung
·3 years ago · EditedNo, the SetActivityStreamListener can only accept 1 user name in the user property
georgecheung
·3 years ago · Edited@tom.friesen
Can you try changing:
to:
Tom Friesen
OP3 years ago · EditedThanks, @george.cheung.collibra.com !
One more thing…
Is it possible to specify multiple usernames or roles for the use or role input fields in SetActivityStreamListener? (Providing a CSV list of usernames doesn’t seem to work, and supplying multiple input fields for role didn’t work for me either.)