Package org.fireflow.engine

Examples of org.fireflow.engine.IWorkItem


  /* (non-Javadoc)
   * @see org.fireflow.engine.IWorkflowSession#claimWorkItem(java.lang.String)
   */
  public IWorkItem claimWorkItem(final String workItemId)
      throws EngineException, KernelException {
    IWorkItem result = null;
    IWorkItem wi = this.findWorkItemById(workItemId);
    result = wi.claim();
    return result;
  }
View Full Code Here


    return query.getResultList();
  }

  public IWorkItem findWorkItemById(String id)
  {
    IWorkItem workItem = this.em.find(WorkItem.class, id);
    if (workItem == null)
      return null;
    return workItem;
  }
View Full Code Here

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

  }
View Full Code Here

  /* (non-Javadoc)
   * @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);
  }
View Full Code Here

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

  }
View Full Code Here

  /* (non-Javadoc)
   * @see org.fireflow.engine.IWorkflowSession#completeWorkItemAndJumpTo(java.lang.String, java.lang.String)
   */
  public void completeWorkItemAndJumpTo(String workItemId,
      String targetActivityId) throws EngineException, KernelException {
    IWorkItem wi = this.findWorkItemById(workItemId);
    wi.jumpTo(targetActivityId);

  }
View Full Code Here

   * @see org.fireflow.engine.IWorkflowSession#completeWorkItemAndJumpTo(java.lang.String, java.lang.String, java.lang.String)
   */
  public void completeWorkItemAndJumpTo(String workItemId,
      String targetActivityId, String comments) throws EngineException,
      KernelException {
    IWorkItem wi = this.findWorkItemById(workItemId);
    wi.jumpTo(targetActivityId, comments);
  }
View Full Code Here

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

  }
View Full Code Here

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

  }
View Full Code Here

  /* (non-Javadoc)
   * @see org.fireflow.engine.IWorkflowSession#reassignWorkItemTo(java.lang.String, java.lang.String)
   */
  public IWorkItem reassignWorkItemTo(String workItemId, String actorId)
      throws EngineException {
    IWorkItem workItem = this.findWorkItemById(workItemId);
    return workItem.reassignTo(actorId);

  }
View Full Code Here

TOP

Related Classes of org.fireflow.engine.IWorkItem

Copyright © 2018 www.massapicom. 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.