2 Replies Latest reply on Dec 18, 2012 8:06 PM by rush_pawan

    Workflow Step back programtically

    ravindrareddydr Level 1

      How can i step back programtically ?

       

       

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

       

      public class WorkflowRestarter implements WorkflowProcess {

       

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

                                    throws WorkflowException {

       

       

                          try{

       

       

                                    List<Route> list = wfsession.getBackRoutes(item);

       

                                    Iterator<Route> itr = list.listIterator();

       

                                    while(itr.hasNext()){

                                              Route route = itr.next();

       

                                              if(route.getName().equals("Step4)){

       

                                                        list.get(Integer.parseInt(route.getId()));

       

                                                        break;

                                              }

       

                                    }

       

       

                          }catch (Exception e) {

       

                                    log.error("@Exceptiones*******************************************************");

       

                          }

       

       

                }

       

      }

       

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

       

      This processs step not calling step 2. So how can i move to step 2 ?

       

      As i have seen functionally Step Back in CQ

       

      Stepback.png

       

       

      Thanks  & Regards