| Previous · Next | |
| User | Message |
|
wijtten
|
Date: 3/3/2010 10:48 am · Subject: Add Entry Workflow · Rating: 1
Hi, I would like to automatically add a user to a group when he/she creates a new dataform entry. I guessed, since there seems to be an AddUserToGroup activity I could just add this to the config... "workflowActivities" : { DataForm::Entry" : [
"WebGUI::Workflow::Activity::AddUserToGroup" ], ...and then select an entry workflow at the bottom of the dataform edit screen.
However, this does not seem to work. Has anybody done something like this before or know how to make it work? Any help would be appreciated.
Cheers, Zeno
--- (Edited on 3/3/2010 10:49 am [GMT-0600] by wijtten) --- |
| Back to Top |
Rate [ | ]
|
|
perlDreamer
|
Date: 3/3/2010 10:55 am · Subject: Re: Add Entry Workflow · Rating: 1
Workflows are sorted by which types of objects they work on. The DataForm will only run workflows that work on WebGUI::AssetCollateral::DataForm::Entry objects. The AddUserToGroup activity works on a WebGUI::User object. So, what is needed is a custom Workflow Activity that adds a User to a Group based on the info inside of a DataForm::Entry object. AddUserToGroupFromDataformEntry or AddUserToGroup::DataFormEntry or something like that. It would take a DataForm::Entry object as an argument, extract the userId from it, build a User object, and add that user to the configured Group. --- (Edited on 3/3/2010 8:55 am [GMT-0800] by perlDreamer) --- |
| Back to Top |
Rate [ | ]
|