4 Replies Latest reply on Feb 6, 2013 7:14 AM by sivaprasadreddys

    Start Workflow from particular Step and assign to particular group of members

    ravindrareddydr Level 1

      Hi

       

      We are working on workflow using CQ 5.5.

       

      Is it possible start workflow from particular Step and assign this workflow to particular group of members dynamically(Using Process Step).

       

      Workflow Name : Single Page Workflow

       

                          Start

                              |

                          Step 1

                              |

                          Step 2

                              |

                          Step 3

                              |

                          Step 4

                              |

                          Step 5

                              |

                          Step 6 (Process Step)

                              |

                           End

       

      In Step 6 , we will start workflow for list pages dynamically , for that we written code as

      ......................................................................

       

      public class PublishTranslation implements WorkflowProcess{

       

          public void execute(WorkItem item, WorkflowSession wfsession, MetaDataMap metadata)

                  throws WorkflowException {

                ....................

                ........................

                .................

                 WorkflowModel  model = wfsession.getModel(item.getWorkflow().getWorkflowModel().getId());

                 WorkflowData wfdata= wfsession.newWorkflowData("JCR_PATH",pagePath[i]);

                 wfsession.startWorkflow(model, wfdata);

       

      }

      }

      This code starting workflow from step 1.

      ..........................................................

       

      I need help on

       

      1. How can i start workflow from step 2 or 3 ?

      2. How can i assign this workflow to group members ?

       

      Thanks & Regards