Package org.uengine.smcp.twister.engine.priv.core.definition

Examples of org.uengine.smcp.twister.engine.priv.core.definition.Activity


        // First activities in the activities List are associated with MessageEvent objects.
        Map result = new HashMap(messageEvents.size());

        for (int m = 0; m < getMessageEvents().size(); m++) {
            try {
                Activity activity = (Activity) getActivities().get(m);

                if (messageEvents.get(m) == null) {
                    throw new ProcessStructuralException("An activity in this Pick container is not associated with " +
                            "any MessageEvent, please check that all activities created in this " +
                            "container is properly associated with an event.");
View Full Code Here


        // AlarmEvent objects.
        Map result = new HashMap(alarmEvents.size());

        for (int m = 0; m < alarmEvents.size(); m++) {
            try {
                Activity activity = (Activity) getActivities().get(m + messageEvents.size());

                if (alarmEvents.get(m) == null) {
                    throw new ProcessStructuralException("An activity in this Pick container is not associated " +
                            "with any AlarmEvent, please check that all activities created in this container " +
                            "is properly associated with an event.");
View Full Code Here


  public SortedMap getActivityConditions() {
        TreeMap orderedMap = new TreeMap();
        for (int m = 0; m < getActivities().size(); m++) {
            Activity activity = (Activity) getActivities().get(m);
            if (m < conditions.size()) {
                orderedMap.put(activity, conditions.get(m));
            } else {
                orderedMap.put(activity, "");
            }
View Full Code Here

  public String getCondition(int index) {
    return (String) conditions.get(index);
  }

    public void setOtherwise(Activity activity) {
        Activity last = (Activity) getActivities().get(getActivities().size() - 1);
        if (!last.equals(activity)) {
            throw new ProcessStructuralException("The otherwise activity must have been created and " +
                    "included in this container in the last position.");
        }
    }
View Full Code Here

TOP

Related Classes of org.uengine.smcp.twister.engine.priv.core.definition.Activity

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.