daily pastebin goal
5%
SHARE
TWEET

Untitled

a guest Dec 1st, 2017 14 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. NodeService nodeService=new NodeServiceImpl();
  2.        
  3.         System.out.println("HI Delagate Execution");
  4.         System.out.println(execution.getVariable("vendordocumentreview_approvalcategory"));
  5.          ActivitiScriptNode scriptNode = (ActivitiScriptNode)execution.getVariable("bpm_package");
  6.          
  7.          
  8.          
  9.          
  10.          ActivitiScriptNode scriptNode1 = (ActivitiScriptNode)execution.getVariable(WorkflowNotificationUtils.PROP_PACKAGE);              
  11.          NodeRef packagenode = scriptNode1.getNodeRef();
  12.          
  13.          
  14.          NodeRef docRef= nodeService.getChildAssocs(packagenode).get(0).getChildRef();
  15.          
  16.          String nodename=docRef.getId();
  17.  
  18.          
  19.         System.out.println("Node Name:"+nodename);
  20.  
  21.          final NodeRef workflowPackageNodeRef = scriptNode.getNodeRef();
  22.                  
  23.          final List<ChildAssociationRef> resource = nodeService.getChildAssocs(workflowPackageNodeRef);
  24.          
  25.          for(int i=0;i<resource.size();i++){
  26.              
  27.              ChildAssociationRef childNodeRef=resource.get(i);
  28.              
  29.              NodeRef  node=childNodeRef.getChildRef();
  30.              
  31.              String nodeRef=node.getId();
  32.              
  33.              System.out.println("List Node Ref:"+nodeRef);
  34.              
  35.          }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top