Hi,

I need in my codelet information about the participant who started the codelet through a workflow. As I can see there is no way to get this information. Therefore I suggest what I would like:

First approach:
Add a parameter in the execute Method of AbstractCodelet with an object which contains all information about the current participant including:

  • the participant id, username, etc.
  • group information
  • capabilities
  • positions
  • orggroup information


Second approach:
Another way would be to pass the needed information a a required parameter to the codelet. But I can not see, that I can pass resource information to local task variables. This would be sufficient for me, but the workflow designer has more work to do. The first approach would be easier.

This would also be an enhancement for Datagateways!

I submitted also an issue about this (https://code.google.com/p/yawl/issues/detail?id=502)

I dug a bit deeper in this problematic and come to the following requirement:

YAWL should be able to pass dynamically participant data into task variables.

Digging:
I saw, that the Codelet has access to its workitem. There is a "startedBy" property, which is (always) "admin". A codelet is started by the system I guess and the system user is "admin". I can not add resources to start Codelets as for other tasks through "Manage Resourcing" in YAWL Editor though.

Further, I can not access the participants, who actually worked/participated on a case (actually I did not find a solution for this) through the ResourceService.

I need a "master" participant, which I can store in DB through the codelet. Therefore it would be possible if I could pass a participant dynamically (like Manage Resources) to a task variable, which is piped to the codelet as a required parameter.