04-17-2015 08:03 AM
04-17-2015 08:30 AM
04-17-2015 08:47 AM
04-20-2015 06:49 AM
05-21-2015 06:09 AM
04-05-2017 04:50 AM
Hello, I'm having the same problem. Did you made a workaround about this?
06-27-2018 04:18 AM
You can try something like this:
<serviceTask id="scripttask1" name="Submit" activiti:class="org.alfresco.repo.workflow.activiti.script.AlfrescoScriptDelegate">
<extensionElements>
<activiti:field name="script">
<activiti:string><![CDATA
for(var i = 0; i < bpm_package.children.length; i++) {
var node = bpm_package.children[i];
var isRegistered = node.properties["myfirm:isRegistered"];
if(isRegistered==true) {
throw new Error ("The document has already been registered");
}
}
]]></activiti:string>
</activiti:field>
<activiti:field name="runAs">
<activiti:string><![CDATA[admin]]></activiti:string>
</activiti:field>
</extensionElements>
</serviceTask>
Regards.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.