View Javadoc
1 package org.smartcomps.twister.engine.priv.core.dynamic; 2 3 import org.smartcomps.twister.engine.priv.core.definition.TwisterProcess; 4 5 import java.util.Collection; 6 7 /*** 8 * An instance of a static definition of the process, represents and 9 * execution of the process. 10 */ 11 public interface ProcessInstance { 12 13 /*** 14 * The Process Instance has been created but is not active yet, not 15 * doing its job (like waiting for a message, invoking a service or 16 * looping). 17 */ 18 public final static int OPEN = 0; 19 /*** 20 * The Process Instance is currently running. 21 */ 22 public final static int ACTIVE = 1; 23 /*** 24 * The Execution Context has been properly completed. 25 */ 26 public final static int COMPLETED = 2; 27 /*** 28 * The Process Instance received a cancellation signal from a user or 29 * another service. 30 */ 31 public final static int CANCELED = 3; 32 /*** 33 * An error occured that prevented the Process Instance to finish 34 * its execution properly. 35 */ 36 public final static int FAULTED = 4; 37 38 public Long getId(); 39 40 public TwisterProcess getProcess(); 41 42 public ExecutionContext getChildExecutionContext(); 43 44 public int getStatus(); 45 46 /*** 47 * @return a Collection of ExecutionEvent 48 */ 49 public Collection getEvents(); 50 51 /*** 52 * @return a Collection of ValuedProperty 53 */ 54 public Collection getProperties(); 55 56 /*** 57 * Gets the ValuedProperty with given name. 58 * @param name 59 * @return the ValuedProperty with given name, null if no such property exists 60 */ 61 public ValuedProperty getPropertyFromName(String name); 62 63 public void notifyExecution(ExecutionContext ec); 64 public void notifyTermination(ExecutionContext ec); 65 66 }

This page was automatically generated by Maven