WorkflowEvent.java 4.14 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  org.osgi.service.event.Event
 */
package com.adobe.granite.workflow.event;

import com.adobe.granite.workflow.exec.WorkItem;
import com.adobe.granite.workflow.exec.WorkflowData;
import java.util.Date;
import java.util.Dictionary;
import org.osgi.service.event.Event;

/*
 * This class specifies class file version 49.0 but uses Java 6 signatures.  Assumed Java 6.
 */
public class WorkflowEvent
extends Event {
    public static final String EVENT_TOPIC = "com/adobe/granite/workflow/event";
    public static final String TIME_STAMP = "TimeStamp";
    public static final String USER = "User";
    public static final String WORKFLOW_NAME = "WorkflowName";
    public static final String WORKFLOW_VERSION = "WorkflowVersion";
    public static final String WORKFLOW_NODE = "WorkflowNode";
    public static final String WORKFLOW_INSTANCE_ID = "WorkflowInstanceId";
    public static final String PARENT_WORKFLOW_ID = "ParentWorkflowId";
    public static final String WORK_DATA = "Workdata";
    public static final String WORK_ITEM = "Workitem";
    public static final String FROM_NODE_NAME = "fromNodeName";
    public static final String TO_NODE_NAME = "toNodeName";
    public static final String VARIABLE_NAME = "VariableName";
    public static final String VARIABLE_VALUE = "VariableValue";
    public static final String DELEGATEE = "Delagatee";
    public static final String EVENT_TYPE = "EventType";
    public static final String MODEL_DEPLOYED_EVENT = "ModelDeployed";
    public static final String MODEL_DELETED_EVENT = "ModelDeleted";
    public static final String WORKFLOW_STARTED_EVENT = "WorkflowStarted";
    public static final String WORKFLOW_ABORTED_EVENT = "WorkflowAborted";
    public static final String WORKFLOW_SUSPENDED_EVENT = "WorkflowSuspended";
    public static final String WORKFLOW_RESUMED_EVENT = "WorkflowResumed";
    public static final String WORKFLOW_COMPLETED_EVENT = "WorkflowCompleted";
    public static final String NODE_TRANSITION_EVENT = "NodeTransition";
    public static final String VARIABLE_UPDATE_EVENT = "VariableUpdate";
    public static final String PROCESS_TIMEOUT_EVENT = "ProcessTimeout";
    public static final String WORKITEM_DELEGATION_EVENT = "WorkItemDelegated";
    public static final String JOB_FAILED_EVENT = "JobFailed";
    public static final String RESOURCE_COLLECTION_MODIFIED = "ResourceCollectionModified";

    public WorkflowEvent(Dictionary<?, ?> props) {
        super("com/adobe/granite/workflow/event", WorkflowEvent.getUntypedDictionary(props));
    }

    private static final Dictionary getUntypedDictionary(Dictionary p) {
        return p;
    }

    public Date getTimeStamp() {
        return (Date)this.getProperty("TimeStamp");
    }

    public String getUser() {
        return (String)this.getProperty("User");
    }

    public String getWorkflowName() {
        return (String)this.getProperty("WorkflowName");
    }

    public String getWorkflowVersion() {
        return (String)this.getProperty("WorkflowVersion");
    }

    public String getWorkflowNode() {
        return (String)this.getProperty("WorkflowNode");
    }

    public String getWorkflowInstanceId() {
        return (String)this.getProperty("WorkflowInstanceId");
    }

    public String getParentWorkflowId() {
        return (String)this.getProperty("ParentWorkflowId");
    }

    public WorkflowData getWorkflowData() {
        return (WorkflowData)this.getProperty("Workdata");
    }

    public WorkItem getWorkItem() {
        return (WorkItem)this.getProperty("Workitem");
    }

    public String getFromNodeName() {
        return (String)this.getProperty("fromNodeName");
    }

    public String getToNodeName() {
        return (String)this.getProperty("toNodeName");
    }

    public String getVariableName() {
        return (String)this.getProperty("VariableName");
    }

    public Object getVariableValue() {
        return this.getProperty("VariableValue");
    }

    public String getDelegateName() {
        return (String)this.getProperty("Delagatee");
    }

    public String getEventType() {
        return (String)this.getProperty("EventType");
    }
}