As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Rule rule1 = new Rule(); Action action1 = new Action(); Condition condition1 = new Condition(); Reference actionReference1; // = ref to My folder NamedValue[] parameters1; // = "All Items" condition1.setParameters(parameters1); action1.setConditions(0, condition1); action1.setActionName("request Approval"); //action1.set choose 'Move item'? action1.setActionReference(actionReference1); rule1.setRuleTypes(0,"update"); rule1.setAction(action1); //apply rule to subspaces
Rule rule1 = new Rule(); Action action1 = new Action(); Action action2 = new Action(); Condition condition1 = new Condition(); Reference actionReference1 = new Reference(); //set its value to Drafts > Writer_Samar Reference actionReference2 = new Reference(); //set its value to Pending Approval > Editor_Samar > Writer_Samar NamedValue[] parameters1 = new NamedValue[] { Utils.createNamedValue(Constants.PROP_NAME, "All Items") };//check? condition1.setParameters(parameters1); action1.setTitle("simple-workflow");//correct attribute meaning? action1.setConditions(0, condition1); action1.setActionReference(actionReference1); //action2.setDescription('Move item') ? [use CMLMove] ? action2.setTitle("approve-step"); action2.setActionName("request Approval"); action2.setActionReference(actionReference2); action1.setActions(0, action2);//check? rule1.setRuleTypes(0,"update"); rule1.setAction(action1); //apply rule to subspaces