I need to modify the task data to mask some fields depending on a user access level in a SAML authentication, so I was wondering if I can run a prefill service is run on a task or should i do it through a security filter?
You should be able to run a Form Prefill Data service in this scenario to modify the form XML data.
To do this update the schemaSeed XML document parameter which is passed into the Form Prefill Data service. For example:
def email = ...
def xmlDoc = new XmlDoc(schemaSeed) xmlDoc.setText('/AvokaSmartForm/Contact/Email', email)
Is the task created through collaboration job? if so, you will need to invoke prefill service through action property of Task. I believe once task is assigned, its treated as saved form and prefill service wont invoke when users opens up the task.
Hi Nirmal Solanki I need this for my project. Can you please give me sample code?
Hi Diana Pattenden please see the action property details form the doco below. This will go into the collaboration job configuration as an additional property.