Package org.huihoo.workflow.runtime

Examples of org.huihoo.workflow.runtime.WorkflowCase


  {

    log.debug(
      "[dispatch_subflow] workitem: " + workflowWork.getInfo() + " | transition: " + workflowTransition.getInfo());

    WorkflowCase workflowCase = workflowWork.getWorkflowCase();
    WorkflowPackage workflowPackage = workflowProcess.getWorkflowPackage();
    WorkflowActivity toActivity = workflowTransition.getToWorkflowActivity();

    //1) create org.huihoo.workflow work for subflow task node
    String parentDispWorkId = null;
View Full Code Here


    String pathDispBatch)
    throws WorkflowException, ScriptException
  {
    log.debug("[dispatch_r2p] workitem: " + workflowWork.getInfo() + " | transition: " + workflowTransition.getInfo());

    WorkflowCase workflowCase = workflowWork.getWorkflowCase();
    WorkflowSubWork subWork = (WorkflowSubWork) workflowWork;
    WorkflowWork parentWork = subWork.getParentWorkflowWork();

    caseDatabase.createWorkflowWorkEvent(
      workflowProcess,
View Full Code Here

    throws WorkflowException, ScriptException
  {
    log.debug(
      "[dispatch_automation] workitem: " + workflowWork.getInfo() + " | transition: " + workflowTransition.getInfo());

    WorkflowCase workflowCase = workflowWork.getWorkflowCase();
    WorkflowActivity toActivity = workflowTransition.getToWorkflowActivity();
    String autoDispWorkId = null;
    if (workflowWork instanceof WorkflowSubWork)
    {
      //performer is null
View Full Code Here

    log.debug(
      "[dispatch_manual] workitem: " + workflowWork.getInfo() + " | transition: " + workflowTransition.getInfo());

    WorkflowActivity workflowActivity = workflowTransition.getToWorkflowActivity();
    PerformerType performerType = workflowActivity.getPerformerType();
    WorkflowCase workflowCase = workflowWork.getWorkflowCase();
    WorkflowCaseContext caseContext = workflowCase.getCaseContext();

    UserDatabase userDatabase = workflowService.getUserDatabase();

    List users = caseContext.getPerformersByTransition(workflowTransition);
View Full Code Here

      loader = ToolImplementation.class.getClassLoader();
    }

    try
    {
      WorkflowCase workflowCase = workItem.getWorkflowCase();
      WorkflowPackage pkg = workflowCase.getWorkflowProcess().getWorkflowPackage();
      WorkflowApplication app = pkg.findWorkflowApplication(getApplicationID());
      String implClassName = app.getQualifiedClassName();
      Class implClass = loader.loadClass(implClassName);

      WorkflowCall call = (WorkflowCall) implClass.newInstance();
View Full Code Here

    WorkflowProcess workflowProcess,
    String caseId)
    throws WorkflowException
  {
    WorkflowParticipant participant = session.getParticipant();
    WorkflowCase workflowCase =
      spiCaseDatabase.findWorkflowCase(workflowProcess, participant, caseId);
    if (getWorkflowCaseValidator() != null)
    {
      getWorkflowCaseValidator().checkFind(participant, workflowCase);
    }
View Full Code Here

    UserTransaction userTransaction,
    String caseId)
    throws WorkflowException
  {
    WorkflowParticipant participant = session.getParticipant();
    WorkflowCase workflowCase =
      spiCaseDatabase.findWorkflowCase(
        workflowProcess,
        participant,
        userTransaction,
        caseId);
View Full Code Here

    WorkflowProcess workflowProcess,
    PrimaryKey primaryKey)
    throws WorkflowException
  {
    WorkflowParticipant participant = session.getParticipant();
    WorkflowCase workflowCase =
      spiCaseDatabase.findWorkflowCase(
        workflowProcess,
        participant,
        primaryKey);
    if (getWorkflowCaseValidator() != null)
View Full Code Here

    UserTransaction userTransaction,
    PrimaryKey primaryKey)
    throws WorkflowException
  {
    WorkflowParticipant participant = session.getParticipant();
    WorkflowCase workflowCase =
      spiCaseDatabase.findWorkflowCase(
        workflowProcess,
        participant,
        userTransaction,
        primaryKey);
View Full Code Here

    {
      SpiCaseIdGenerator caseIdGenerator=gCaseDatabaseImpl.getCaseIdGenerator();
      SchemaContext      schemaContext=gCaseDatabaseImpl.getSchemaContext()
      Store         storeConfig=  gCaseDatabaseImpl.getStore();
     
      WorkflowCase workflowCase = workflowWork.getWorkflowCase();
     
      String packageId = workflowProcess.getWorkflowPackage().getUUID();
      String processId = workflowProcess.getUUID();
      String caseId = workflowCase.getUUID();
      String workId = workflowWork.getUUID();
      String strSQL =
        "UPDATE "
          + schemaContext.getTableName(SchemaContext.SCHEMA_WORK)
          + " "
View Full Code Here

TOP

Related Classes of org.huihoo.workflow.runtime.WorkflowCase

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.