04-02-2013 03:16 PM
<receiveTask id="IssuePost" name="Issue Post">
<extensionElements>
<activiti:executionListener event="start" delegateExpression="${IssuePost}"></activiti:executionListener>
</extensionElements>
</receiveTask>
List<NodeRef> siblingNodes = searchService.selectNodes( parent, xpath, null, namespacePrefixResolver, false );
if( siblingNodes.size() == batchCount )
{
for( int i=0; i < siblingNodes.size(); i++ )
{
List<WorkflowInstance> workflows = workflowService.getWorkflowsForContent( siblingNodes.get( i ), true );
// this line causes the loop.
workflowService.signal( workflows.get(0).getId(), null );
04-03-2013 09:40 AM
for( NodeRef siblingNode : siblingNodes )
{
List<WorkflowInstance> workflows = workflowService.getWorkflowsForContent( siblingNode, true );
List<WorkflowPath> paths = workflowService.getWorkflowPaths( workflows.get(0).getId() );
for( WorkflowPath path : paths )
{
workflowService.signal( path.getId(), null );
}
}
04-04-2013 04:36 PM
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.