09-20-2007 05:15 AM
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
09-20-2007 06:50 AM
09-20-2007 11:10 AM
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
11-14-2007 01:59 PM
12-26-2007 10:12 PM
03-12-2008 07:44 AM
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.