Package org.huihoo.workflow.store.security

Examples of org.huihoo.workflow.store.security.WorkflowWorkValidator


//------------------------------------------------------------------------------------- 
  public boolean accept(WorkflowSession session, WorkflowWork workItem)
    throws WorkflowException
  {
    WorkflowParticipant participant = session.getParticipant();
    WorkflowWorkValidator workValidator =
    spiCaseDatabase.getWorkflowWorkValidator();
    if (workValidator != null)
    {
      workValidator.checkAccept(participant, workItem);
    }
    return spiCaseDatabase.getWorkflowDispatcher().accept(
      workItem.getWorkflowCase().getWorkflowProcess(),
      participant,
      workItem);
View Full Code Here


  public boolean dispatch(WorkflowSession session, WorkflowWork workItem)
    throws WorkflowException
  {
    WorkflowParticipant participant = session.getParticipant();

    WorkflowWorkValidator workValidator =
    spiCaseDatabase.getWorkflowWorkValidator();
    if (workValidator != null)
    {
      workValidator.checkDispatch(participant, workItem);
    }
    return spiCaseDatabase.getWorkflowDispatcher().dispatch(
      workItem.getWorkflowCase().getWorkflowProcess(),
      participant,
      workItem);
View Full Code Here

  }
  public boolean revert(WorkflowSession session, WorkflowWork workItem)
    throws WorkflowException
  {
    WorkflowParticipant participant = session.getParticipant();
    WorkflowWorkValidator workValidator =spiCaseDatabase.getWorkflowWorkValidator();
    if (workValidator != null)
    {
      workValidator.checkRevert(participant, workItem);
    }
    return spiCaseDatabase.getWorkflowDispatcher().revert(
      workItem.getWorkflowCase().getWorkflowProcess(),
      participant,
      workItem);
View Full Code Here

  }
  public boolean fetch(WorkflowSession session, WorkflowWork workItem)
    throws WorkflowException
  {
    WorkflowParticipant participant = session.getParticipant();
    WorkflowWorkValidator workValidator =
    spiCaseDatabase.getWorkflowWorkValidator();
    if (workValidator != null)
    {
      workValidator.checkFetch(participant, workItem);
    }
    return spiCaseDatabase.getWorkflowDispatcher().fetch(
      workItem.getWorkflowCase().getWorkflowProcess(),
      participant,
      workItem);
View Full Code Here

TOP

Related Classes of org.huihoo.workflow.store.security.WorkflowWorkValidator

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.