Package org.huihoo.workflow.xpdl

Examples of org.huihoo.workflow.xpdl.ExtendedAttribute


    return findWorkflowActivity(endActivityId);
  }

  public void            setEndActivity(WorkflowActivity endActivity)
  {
    ExtendedAttribute attribute =
      (ExtendedAttribute) getExtendedAttributes().get(XPDLGlobals.ID_ACTIVITY_END);
    if(attribute==null)
    {
      this.addExtendedAttribute(new ExtendedAttribute(XPDLGlobals.ID_ACTIVITY_END,endActivity.getUUID()));
    }
     
    attribute.setValue(endActivity.getUUID());
  }
View Full Code Here


    }
   
    String qClassName=application.getQualifiedClassName();
    if(qClassName != null)
    {
      application.addExtendedAttribute(new ExtendedAttribute(XPDLGlobals.APPLICATION_QUALIFIED_CLASS_NAME,qClassName));
    }
    extendedAttriutes(application, out, nsPrefix, ident_unit + 1);
    pushIdent(out, ident_unit);
    out.write("</" + nsPrefix + "Application>");
    newLine(out);
View Full Code Here

    }
   
    String listenerClassName =   process.getListenerClassName();
    if(listenerClassName!=null)
    {
      process.addExtendedAttribute(new ExtendedAttribute(XPDLGlobals.LISTENER_QUALIFIED_CLASS_NAME,listenerClassName));
   
    extendedAttriutes(process, out, nsPrefix, ident_unit + 1);
 
    pushIdent(out, ident_unit);
    out.write("</" + nsPrefix + "WorkflowProcess>");
View Full Code Here

   
   
    ActivityType act_type=activity.getActivityType();
    if(act_type != null)
    {
      activity.addExtendedAttribute(new ExtendedAttribute(XPDLGlobals.ACTIVITY_TYPE,act_type.getType()));
    }
   
    PerformerType pf_type=activity.getPerformerType();
    if(pf_type!=null)
    {
      activity.addExtendedAttribute(new ExtendedAttribute(XPDLGlobals.PERFORMER_TYPE,pf_type.getType()));
    }
   
    String listenerClassName =   activity.getListenerClassName();
    if(listenerClassName!=null)
    {
      activity.addExtendedAttribute(new ExtendedAttribute(XPDLGlobals.LISTENER_QUALIFIED_CLASS_NAME,listenerClassName));
   
    extendedAttriutes(activity, out, nsPrefix, ident_unit + 1);
   
   
    pushIdent(out, ident_unit);
View Full Code Here

    WorkflowCondition condition=transition.getCondition();
    transition.removeExtendedAttribute(XPDLGlobals.CONDITION_TYPE);
   
    if (condition != null && condition.getContent() != null)
    {
      transition.addExtendedAttribute(new ExtendedAttribute(XPDLGlobals.CONDITION_TYPE,condition.getType().getType()));
     
      if(ConditionType.CONDITION_SCRIPT.equals(condition.getType()))
      {
        pushIdent(out, ident_unit);
        out.write("<" + nsPrefix + "Condition>");
View Full Code Here

    {
      Object name = iterator.next();
      Object value = elemAttributes.get(name);
      if (value instanceof ExtendedAttribute)
      {
        ExtendedAttribute attribute = (ExtendedAttribute) value;
        pushIdent(out, ident_unit + 1);
        out.write("<" + nsPrefix + "ExtendedAttribute");
        String attrname = (String)attribute.getName();
        if ( attrname!= null && attrname.length()>0)
        {
          out.write(" Name=\"" + attrname + "\"");
          if (attribute.getValue() != null)
          {
            out.write(" Value=\"" + attribute.getValue() + "\"");
          }
        }
      }
      else
      {
View Full Code Here

    return application;
  }
   
  public WorkflowProcess getMainProcess()
  { 
    ExtendedAttribute attribute =findExtendedAttribute(XPDLGlobals.ID_PROCESS_MAIN);
    if(attribute==null)
    {
      return null;
    }
   
    String mainProcessId= attribute.getValue();   
    return findWorkflowProcess(mainProcessId);
  }
View Full Code Here

TOP

Related Classes of org.huihoo.workflow.xpdl.ExtendedAttribute

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.