Package org.huihoo.workflow.store

Examples of org.huihoo.workflow.store.SchemaContext


  {
    PreparedStatement pstmt = null;
    try
    {
      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 =
        "DELETE FROM "
          + schemaContext.getTableName(SchemaContext.SCHEMA_WORK)
          + " "
          + "WHERE    vc_packageId=?"
          + " "
          + "AND      vc_processid=?"
          + " "
View Full Code Here


    ResultSet jrs = null;

    try
    {
      SpiCaseIdGenerator caseIdGenerator=gCaseDatabaseImpl.getCaseIdGenerator();
      SchemaContext      schemaContext=gCaseDatabaseImpl.getSchemaContext()
      Store         storeConfig=  gCaseDatabaseImpl.getStore();
     
      WorkflowPackage workflowPackage = workflowProcess.getWorkflowPackage();
      String packageId = workflowPackage.getUUID();
      String processId = workflowProcess.getUUID();
      String caseId = workflowCase.getUUID();
      String strSQL =
        "SELECT * FROM "
          + schemaContext.getTableName(SchemaContext.SCHEMA_WORK)
          + " "
          + "WHERE  vc_packageId=?"
          + " "
          + "AND    vc_processid=?"
          + " "
View Full Code Here

    PreparedStatement pstmt = null;
    String pathId = null;
    try
    {
      SpiCaseIdGenerator caseIdGenerator=gCaseDatabaseImpl.getCaseIdGenerator();
      SchemaContext      schemaContext=gCaseDatabaseImpl.getSchemaContext()
      Store         storeConfig=  gCaseDatabaseImpl.getStore();
     
      String pkgId = workflowProcess.getWorkflowPackage().getUUID();
      String processId = workflowProcess.getUUID();
      String caseId = workflowCase.getUUID();
     
      String transitionId=null;
      String owner_processId=null;
      WorkflowActivity fromActivity=(fromWork!=null)?fromWork.getWorkflowActivity():null;
      WorkflowActivity toActivity=(toWork!=null)?toWork.getWorkflowActivity():null;
     
      if(fromActivity!=null && toActivity!=null)
      {
        WorkflowProcess owner_process=fromActivity.getWorkflowProcess();
        owner_processId=owner_process.getUUID();
        transitionId=owner_process.findWorkflowTransition(fromActivity,toActivity).getUUID();
      }
      pathId = caseIdGenerator.genWorkflowPathID(pkgId, processId, caseId);
      String strSQL =
        "INSERT INTO "
          + schemaContext.getTableName(SchemaContext.SCHEMA_PATH)
          + "(vc_packageid,vc_processid,vc_caseId,vc_uuid,vc_from,vc_to,vc_batchNo,int_eventType,vc_owner_processid,vc_transitionId) "
          + "VALUES(?,?,?,?,?,?,?,?,?,?)";
      pstmt = conn.prepareStatement(strSQL);
      pstmt.setString(1, pkgId);
      pstmt.setString(2, processId);
View Full Code Here

    PreparedStatement pstmt = null;

    try
    {
      SpiCaseIdGenerator caseIdGenerator=gCaseDatabaseImpl.getCaseIdGenerator();
      SchemaContext      schemaContext=gCaseDatabaseImpl.getSchemaContext()
      Store         storeConfig=  gCaseDatabaseImpl.getStore();
     
      WorkflowPackage workflowPackage = workflowProcess.getWorkflowPackage();
      String packageId = workflowPackage.getUUID();
      String processId = workflowProcess.getUUID();
      String caseId = workflowCase.getUUID();
      String strSQL =
        "SELECT * FROM "
          + schemaContext.getTableName(SchemaContext.SCHEMA_PATH)
          + " "
          + "WHERE  vc_packageId=?"
          + " "
          + "AND    vc_processid=?"
          + " "
View Full Code Here

  {
    PreparedStatement pstmt = null;
    try
    {
      SpiCaseIdGenerator caseIdGenerator=gCaseDatabaseImpl.getCaseIdGenerator();
      SchemaContext      schemaContext=gCaseDatabaseImpl.getSchemaContext()
      Store         storeConfig=  gCaseDatabaseImpl.getStore();
     
      WorkflowCase workflowCase = workflowPath.getFromWorkflowWork().getWorkflowCase();
     
      String packageId = workflowProcess.getWorkflowPackage().getUUID();
      String processId = workflowProcess.getUUID();
      String caseId = workflowCase.getUUID();
      String strSQL =
        "DELETE FROM "
          + schemaContext.getTableName(SchemaContext.SCHEMA_PATH)
          + " "
          + "WHERE  vc_packageId=?"
          + " "
          + "AND    vc_processid=?"
          + " "
View Full Code Here

    throws WorkflowException
  {
    PreparedStatement pstmt = null;
    try
    {
      SchemaContext      schemaContext=gCaseDatabaseImpl.getSchemaContext()
     
      String strSQL =
        "INSERT INTO "
          + schemaContext.getTableName(SchemaContext.SCHEMA_CASE_EVENT)
          + "(vc_packageid,vc_processid,vc_caseid,int_type,vc_operator,dat_opTime,vc_description) "
          + "VALUES(?,?,?,?,?,?,?)";
      pstmt = conn.prepareStatement(strSQL);
      pstmt.setString(1, packageId);
      pstmt.setString(2, processId);
View Full Code Here

    PreparedStatement pstmt = null;
    String caseId = null;
    try
    {
      SpiCaseIdGenerator caseIdGenerator=gCaseDatabaseImpl.getCaseIdGenerator();
      SchemaContext      schemaContext=gCaseDatabaseImpl.getSchemaContext()
      Store         storeConfig=  gCaseDatabaseImpl.getStore();
     
      String pkgId = workflowProcess.getWorkflowPackage().getUUID();
      String processId = workflowProcess.getUUID();
      caseId = workflowCase.getUUID();
      String strSQL =
        "INSERT INTO "
          + schemaContext.getTableName(SchemaContext.SCHEMA_CASE_EVENT)
          + "(vc_packageid,vc_processid,vc_caseid,int_type,vc_operator,dat_opTime,vc_description) "
          + "VALUES(?,?,?,?,?,?,?)";
      pstmt = conn.prepareStatement(strSQL);
      pstmt.setString(1, pkgId);
      pstmt.setString(2, processId);
View Full Code Here

  {
    PreparedStatement pstmt = null;
    try
    {
      SpiCaseIdGenerator caseIdGenerator=gCaseDatabaseImpl.getCaseIdGenerator();
      SchemaContext      schemaContext=gCaseDatabaseImpl.getSchemaContext()
      Store         storeConfig=  gCaseDatabaseImpl.getStore();
     
     
      WorkflowCase workflowCase = workflowWork.getWorkflowCase();
     
      String pkgId = workflowProcess.getWorkflowPackage().getUUID();
      String processId = workflowProcess.getUUID();
      String caseId = workflowCase.getUUID();

      String workId = workflowWork.getUUID();
      String strSQL =
        "INSERT INTO "
          + schemaContext.getTableName(SchemaContext.SCHEMA_WORK_EVENT)
          + "(vc_packageid,vc_processid,vc_caseid,int_type,vc_operator,dat_opTime,vc_workid,vc_description) "
          + "VALUES(?,?,?,?,?,?,?,?)";
      pstmt = conn.prepareStatement(strSQL);
      pstmt.setString(1, pkgId);
      pstmt.setString(2, processId);
View Full Code Here

TOP

Related Classes of org.huihoo.workflow.store.SchemaContext

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.