Package de.danet.an.workflow.omgcore

Examples of de.danet.an.workflow.omgcore.WfAssignmentAuditEvent


      System.err.println(" process manager name = "
             + ae.processMgrName());
      System.err.println(" process manager version = "
             + ae.processMgrVersion());
      if (o instanceof WfAssignmentAuditEvent){
    WfAssignmentAuditEvent aae =(WfAssignmentAuditEvent)o;
    System.err.println(" old resource key = "
           + aae.oldResourceKey());
    System.err.println(" new resource key = "
           + aae.newResourceKey());
    System.err.println(" old resource name = "
           + aae.oldResourceName());
    System.err.println(" new resource name = "
           + aae.newResourceName());
      } else if (o instanceof WfCreateProcessAuditEvent){
    WfCreateProcessAuditEvent cpae = (WfCreateProcessAuditEvent)o;
    System.err.println(" parent activity key = "
           + cpae.pActivityKey());
    System.err.println(" parent process key = "
View Full Code Here


  boolean jToM = false;
  boolean mToNone = false;
  for (Iterator i = act.history().iterator (); i.hasNext ();) {
      WfAuditEvent evt = (WfAuditEvent)i.next ();
      if (evt instanceof WfAssignmentAuditEvent) {
    WfAssignmentAuditEvent ae = (WfAssignmentAuditEvent)evt;
    if (ae.oldResourceName() == null
        && ae.newResourceName().equals ("ML")
        && !noneToJ) {
        noneToJ = true;
    } else if (ae.oldResourceName().equals ("ML")
        && ae.newResourceName().equals ("Order Processing")
        && !jToM) {
        jToM = true;
    } else if (ae.oldResourceName().equals ("Order Processing")
        && ae.newResourceName() == null
        && !mToNone) {
        mToNone = true;
    } else {
        assertTrue (false);
    }
View Full Code Here

  String eventData2 = null;
  String eventData3 = null;
  String eventData4 = null;
  String eventData5 = null;
  if (event instanceof WfAssignmentAuditEvent){
      WfAssignmentAuditEvent ev = (WfAssignmentAuditEvent)event;
      eventData1 = ev.oldResourceKey();
      eventData2 = ev.oldResourceName();
      eventData3 = ev.newResourceKey();
      eventData4 = ev.newResourceName();
  } else if (event instanceof WfCreateProcessAuditEvent){
      WfCreateProcessAuditEvent ev = (WfCreateProcessAuditEvent)event;
      eventData1 = ev.pActivityKey();
      eventData2 = ev.pProcessKey();
      eventData3 = ev.pProcessName();
      eventData4 = ev.pProcessMgrName();
      eventData5 = ev.pProcessMgrVersion();
  } else if (event instanceof WfDataAuditEvent){
      eventData1 = Long.toString (recKey);
  } else if (event instanceof WfStateAuditEvent){
      WfStateAuditEvent ev = (WfStateAuditEvent)event;
      eventData1 = ev.oldState();
      eventData2 = ev.newState();
  }
  prepStmt.setString (offset++, eventData1);
  prepStmt.setString (offset++, eventData2);
  prepStmt.setString (offset++, eventData3);
        prepStmt.setString (offset++, eventData4);
View Full Code Here

TOP

Related Classes of de.danet.an.workflow.omgcore.WfAssignmentAuditEvent

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.