Package org.huihoo.workflow.store

Examples of org.huihoo.workflow.store.SchemaContext


          caseStore = WorkflowProperties.getCaseStore();
        }
        env.put(org.huihoo.workflow.xpdl.parser.Constants.WORKFLOW_STORE_CASE, caseStore);
        caseDatabase = dbFactory.newCaseDatabase(env);
        caseDatabase.setWorkflowService(context);
        SchemaContext schemaContext = new SchemaContext(schemaConextBase);
        if (userDatabase.getSchemaContext() == null)
        {
          userDatabase.setSchemaContext(schemaContext);
        }
        if (caseDatabase.getSchemaContext() == null)
View Full Code Here


{
  public static void main(String[] args)
  {
    try
    {
      SchemaContext schemaContext=new SchemaContext("D:\\project\\org.huihoo.workflow\\conf\\org.huihoo.workflow-schema.properties");
      Store storeConfig=new Store("DriverManager","dbc:oracle:thin:@zosatapo:1521:org.huihoo.workflow","org.huihoo.workflow","org.huihoo.workflow","oracle.jdbc.driver.OracleDriver");
      //SpiUserDatabaseImpl userDatabase=new SpiUserDatabaseImpl(schemaContext,storeConfig);
      SpiUserDatabase userDatabase=DatabaseRegistry.getUserDatabase(storeConfig.getDriverClass());
      userDatabase.setSchemaContext(schemaContext);
      userDatabase.setStore(storeConfig);
View Full Code Here

    {
      try
      {
        userDatabase = (SpiUserDatabase) gudb.clone();
       
        SchemaContext schemaContext = new SchemaContext(WorkflowProperties.getSchemaContextFile());
        userDatabase.setSchemaContext(schemaContext);
       
        Store tmpStore=(this.store==null?WorkflowProperties.getUserStore():this.store);
        userDatabase.setStore(tmpStore);
       
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();
      String caseId = workflowCase.getUUID();

      String strSQL =
        "INSERT INTO "
          + schemaContext.getTableName(SchemaContext.SCHEMA_CASE_DATAFIELD)
          + "(vc_packageid,vc_processid,vc_caseid,vc_uuid,vc_type,vc_value) "
          + "VALUES(?,?,?,?,?,?)";
      pstmt = conn.prepareStatement(strSQL);
      pstmt.setString(1, packageId);
      pstmt.setString(2, processId);
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();
      String caseId = workflowCase.getUUID();
      String paramId = parameter.getUUID();
      String strSQL =
        "UPDATE "
          + schemaContext.getTableName(SchemaContext.SCHEMA_CASE_DATAFIELD)
          + " "
          + "SET      vc_value=? "
          + "WHERE    vc_packageId='"
          + packageId
          + "' "
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(?,?,?,?,?,?,?,?,?)";
      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()
     
      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(?,?,?,?,?,?,?)";
      pstmt = conn.prepareStatement(strSQL);
      pstmt.setString(1, pkgId);
      pstmt.setString(2, processId);
View Full Code Here

  {
    PreparedStatement pstmt = null;

    try
    {
      SchemaContext      schemaContext=gCaseDatabaseImpl.getSchemaContext()
     
      WorkflowPackage workflowPackage = workflowProcess.getWorkflowPackage();
      String pkgId = workflowPackage.getUUID();
      String processId = workflowProcess.getUUID();

      String strSQL =
        "INSERT INTO "
          + schemaContext.getTableName(SchemaContext.SCHEMA_CASE_DATAFIELD)
          + "(vc_packageid,vc_processid,vc_caseid,vc_uuid,vc_type,vc_value) "
          + "VALUES(?,?,?,?,?,?)";

      List paramList = workflowPackage.getWorkflowParameters();
View Full Code Here

    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();
      String strSQL =
        "SELECT * FROM "
          + schemaContext.getTableName(SchemaContext.SCHEMA_CASE)
          + " "
          + "WHERE  vc_packageId=? AND    vc_processid=? AND    vc_creator=?";;

      pstmt = conn.prepareStatement(strSQL);
      pstmt.setString(1, packageId);
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 strSQL =
        "SELECT * FROM "
          + schemaContext.getTableName(SchemaContext.SCHEMA_WORK)
          + " "
          + "WHERE  vc_packageId=?"
          + " "
          + "AND    vc_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.