Package org.huihoo.workflow.store.spi

Examples of org.huihoo.workflow.store.spi.SpiCaseIdGenerator


  {
    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(?,?,?,?,?,?,?,?,?,?)";
View Full Code Here


    ResultSet jrs = null;
    PreparedStatement pstmt = null;

    try
    {
      SpiCaseIdGenerator caseIdGenerator=gCaseDatabaseImpl.getCaseIdGenerator();
      SchemaContext      schemaContext=gCaseDatabaseImpl.getSchemaContext()
      Store         storeConfig=  gCaseDatabaseImpl.getStore();
     
      WorkflowPackage workflowPackage = workflowProcess.getWorkflowPackage();
      String packageId = workflowPackage.getUUID();
View Full Code Here

    throws WorkflowException
  {
    PreparedStatement pstmt = null;
    try
    {
      SpiCaseIdGenerator caseIdGenerator=gCaseDatabaseImpl.getCaseIdGenerator();
      SchemaContext      schemaContext=gCaseDatabaseImpl.getSchemaContext()
      Store         storeConfig=  gCaseDatabaseImpl.getStore();
     
      WorkflowCase workflowCase = workflowPath.getFromWorkflowWork().getWorkflowCase();
     
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();
View Full Code Here

    throws WorkflowException
  {
    PreparedStatement pstmt = null;
    try
    {
      SpiCaseIdGenerator caseIdGenerator=gCaseDatabaseImpl.getCaseIdGenerator();
      SchemaContext      schemaContext=gCaseDatabaseImpl.getSchemaContext()
      Store         storeConfig=  gCaseDatabaseImpl.getStore();
     
     
      WorkflowCase workflowCase = workflowWork.getWorkflowCase();
View Full Code Here

  {
    PreparedStatement pstmt = null;
    try
    {
     
      SpiCaseIdGenerator caseIdGenerator=gCaseDatabaseImpl.getCaseIdGenerator();
      SchemaContext      schemaContext=gCaseDatabaseImpl.getSchemaContext()
      Store         storeConfig=  gCaseDatabaseImpl.getStore();
     
      String packageId = workflowProcess.getWorkflowPackage().getUUID();
      String processId = workflowProcess.getUUID();
View Full Code Here

    throws WorkflowException
  {
    PreparedStatement pstmt = null;
    try
    {
      SpiCaseIdGenerator caseIdGenerator=gCaseDatabaseImpl.getCaseIdGenerator();
      SchemaContext      schemaContext=gCaseDatabaseImpl.getSchemaContext()
      Store         storeConfig=  gCaseDatabaseImpl.getStore();
       

      String packageId = workflowProcess.getWorkflowPackage().getUUID();
View Full Code Here

  {
    PreparedStatement pstmt = null;
    String workId = null;
    try
    {
      SpiCaseIdGenerator caseIdGenerator=gCaseDatabaseImpl.getCaseIdGenerator();
      SchemaContext      schemaContext=gCaseDatabaseImpl.getSchemaContext()
      Store         storeConfig=  gCaseDatabaseImpl.getStore();
     
      String pkgId = workflowProcess.getWorkflowPackage().getUUID();
      String processId = workflowProcess.getUUID();
      workId = caseIdGenerator.genWorkflowWorkID(pkgId, processId, caseId);
      String strSQL =
        "INSERT INTO "
          + schemaContext.getTableName(SchemaContext.SCHEMA_WORK)
          + "(vc_packageid,vc_processid,vc_caseid,vc_owner_processid,vc_activityid,vc_uuid,vc_performer,dat_arriveTime,dat_acceptTime) "
          + "VALUES(?,?,?,?,?,?,?,?,?)";
View Full Code Here

  {
    PreparedStatement pstmt = null;

    try
    {
      SpiCaseIdGenerator caseIdGenerator=gCaseDatabaseImpl.getCaseIdGenerator();
      SchemaContext      schemaContext=gCaseDatabaseImpl.getSchemaContext()
     
      String pkgId = workflowProcess.getWorkflowPackage().getUUID();
      String processId = workflowProcess.getUUID();
      String 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,int_eventType) "
          + "VALUES(?,?,?,?,?,?,?)";
View Full Code Here

    PreparedStatement pstmt = null;

    ArrayList caseList = new ArrayList();
    try
    {
      SpiCaseIdGenerator caseIdGenerator=gCaseDatabaseImpl.getCaseIdGenerator();
      SchemaContext      schemaContext=gCaseDatabaseImpl.getSchemaContext()
      Store         storeConfig=  gCaseDatabaseImpl.getStore();
     
      String packageId = workflowProcess.getWorkflowPackage().getUUID();
      String processId = workflowProcess.getUUID();
View Full Code Here

TOP

Related Classes of org.huihoo.workflow.store.spi.SpiCaseIdGenerator

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.