Examples of startWorkflow()


Examples of com.day.cq.workflow.WorkflowSession.startWorkflow()

                if (StringUtils.isBlank(state)
                        && StringUtils.isNotBlank(payloadPath)) {

                    // Don't try to restart already processed batch items

                    final Workflow workflow = workflowSession.startWorkflow(model,
                            workflowSession.newWorkflowData("JCR_PATH", payloadPath));
                    properties.put(KEY_WORKFLOW_ID, workflow.getId());
                    properties.put(KEY_STATE, workflow.getState());

                    workflowMap.put(child.getPath(), workflow.getId());
View Full Code Here

Examples of net.fp.rp.spring.SpringStarter.startWorkflow()

        //Depends on it being configure in the App-Context to be an instance of this class
        ParameterWorkflowStrategy pStrat = (ParameterWorkflowStrategy) myBean.getStarterStrategy();
        pStrat.param1="test";
        pStrat.param2="TestInput1";
               
        myBean.startWorkflow();
       
        //Now Carry out some assertions
        List<ExecutionContext> execList = TestActionHandler.getPreviousExecutions();
        assertEquals(1,execList.size());
       log.debug("NodeName:"+execList.get(0).getNode().getName());
View Full Code Here

Examples of net.fp.rp.spring.SpringStarter.startWorkflow()

        //Depends on it being configure in the App-Context to be an instance of this class
        ParameterWorkflowStrategy pStrat = (ParameterWorkflowStrategy) myBean.getStarterStrategy();
        pStrat.param1="test";
        pStrat.param2="TestInput2";
               
        myBean.startWorkflow();
       
        //Now Carry out some assertions
        List<ExecutionContext> execList = TestActionHandler.getPreviousExecutions();
        assertEquals(2,execList.size());
       log.debug("NodeName:"+execList.get(1).getNode().getName());
View Full Code Here

Examples of net.fp.rp.spring.SpringStarter.startWorkflow()

          configFile);

      // Todo remove the next bit and make more generic
      SpringStarter myBean = (SpringStarter) context
          .getBean(workflowBean);
      myBean.startWorkflow();
    }

  }

}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.