]
Huisheng Xu updated JBPM-2870:
------------------------------
Fix Version/s: jBPM 4.x
Auto-assign the autenticate user for a task
-------------------------------------------
Key: JBPM-2870
URL:
https://jira.jboss.org/browse/JBPM-2870
Project: jBPM
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: Runtime Engine
Affects Versions: jBPM 4.3
Environment: JBPM 4.3 with spring
Reporter: Jaber C. Mourad
Fix For: jBPM 4.x
I'm looking for something to assign automatically the current authenticate user when
it is known by the ProcessEngine.setAuthenticatedUserId method.
My usecase is very simple (but, AFAIK, no simple solution for this !) :
when a user start a particular process, I need to assign or make it candidate to a
particular task (the first one generally)... As it is that particular user who create the
instance, it is assigned to complete that task...
If it is possible to have an EL to describe the current autenticate user it would be very
helpfull.
for example :
<task assignee="${context.authenticateUser}"
candidate-users="${context.authenticateUser},bob" g="170,179,92,52"
name="autoAssignTask">
<transition g="-81,-24" name="to theEnd"
to="theEnd"/>
</task>
In that way it doesn't need to modify jpdl but it need to make the authenticate
userId available.
Regards
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: