Package org.fireflow.engine

Examples of org.fireflow.engine.IWorkItem.complete()


   * @see org.fireflow.engine.IWorkflowSession#completeWorkItem(java.lang.String)
   */
  public void completeWorkItem(String workItemId) throws EngineException,
      KernelException {
    IWorkItem wi = this.findWorkItemById(workItemId);
    wi.complete();

  }

  /* (non-Javadoc)
   * @see org.fireflow.engine.IWorkflowSession#completeWorkItem(java.lang.String, java.lang.String)
View Full Code Here


   * @see org.fireflow.engine.IWorkflowSession#completeWorkItem(java.lang.String, java.lang.String)
   */
  public void completeWorkItem(String workItemId, String comments)
      throws EngineException, KernelException {
    IWorkItem wi = this.findWorkItemById(workItemId);
    wi.complete(comments);
  }

  /* (non-Javadoc)
   * @see org.fireflow.engine.IWorkflowSession#completeWorkItem(java.lang.String, org.fireflow.engine.taskinstance.DynamicAssignmentHandler, java.lang.String)
   */
 
View Full Code Here

   */
  public void completeWorkItem(String workItemId,
      DynamicAssignmentHandler dynamicAssignmentHandler, String comments)
      throws EngineException, KernelException {
    IWorkItem wi = this.findWorkItemById(workItemId);
    wi.complete(dynamicAssignmentHandler, comments);

  }

  /* (non-Javadoc)
   * @see org.fireflow.engine.IWorkflowSession#completeWorkItemAndJumpTo(java.lang.String, java.lang.String)
View Full Code Here

    public static final String ACTOR_ID = "Fireflow JUnit Tester";
    public void assign(IAssignable asignable, String performerName) throws EngineException, KernelException {
        IWorkItem wi = asignable.assignToActor(ACTOR_ID);
        wi.claim();
        wi.complete();
    }


}
View Full Code Here

                      processInstance.setProcessInstanceVariable("leaveDays",
                          LEAVE_DAYS);//请假天数
                     
                      //3、结束WorkItem
                      //结束workItem会触发流程实例向下一个环节流转,
                      wi.complete();
                    }
                  
                    return null;
                } catch (EngineException ex) {
                    Logger.getLogger(LeaveApplicationTester.class.getName()).log(Level.SEVERE, null, ex);
View Full Code Here

                          APPROVAL_FLAG);//审批意见
                     
                      //3、结束WorkItem
                      //结束workItem会触发流程实例向下一个环节流转,
                      //由于下一个环节是ToolTask,流程引擎会自动调用其ApplicationHandler.
                      wi.complete();
                    }
                  
                    return null;
                } catch (EngineException ex) {
                    Logger.getLogger(LeaveApplicationTester.class.getName()).log(Level.SEVERE, null, ex);
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.