|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.innovationinvestments.cheyenne.engine.components.Component
nl.innovationinvestments.cheyenne.engine.components.WFStart
public class WFStart
There are two ways of using the workflows: in memory or persisted (long running). Long running workflows are stored in a database; the process definition of which it is an instance, must also be stored in the database. So when a long running workflow is created, the name and optional version specifiy with definition to use. The resulting workflow is persisted in the database, so it can be identified through an "id". The id is what is managed by the Cheyenne application (by storing it in a variable and optionally in some database). In-memory workflows are never stored in any kind of database, therefore there also is no list of existing process definitions to create a workflow from; there simply is no database. So in-memory workflows have to be created from the XML each and every time. The XML can me written in-line or in a separate file (for re-use), referenced through a url. When a workflow is created, the actual object must be stored, in this case in the same context as the variable. In order to be compatible with long running workflows, an ID is returned, which denotes the workflow. The id is what is managed by the Cheyenne application (by storing it in a variable), but it is quite useless to store this id in a database.
| Nested Class Summary | |
|---|---|
static interface |
WFStart.RunnableWithCorrectProcessInstance
|
| Field Summary | |
|---|---|
static String |
CONTEXT_VARIABLE_PERSIST
|
static String |
PROCESSID_PREFIX
|
static String |
SOURCECODE_VERSION
Standard variable for determining version of a class file. |
| Constructor Summary | |
|---|---|
WFStart()
|
|
WFStart(Dialog dialog)
|
|
| Method Summary | |
|---|---|
void |
append(String s)
|
static boolean |
determineIfLongRunning(String id)
|
static long |
determineProcessId(String id)
|
static String |
determineScopeId(String id)
|
static long |
determineTokenId(String id)
|
void |
finish()
|
String |
getAs()
As |
String |
getName()
Name |
String |
getScope()
Scope |
String |
getUrl()
Url: may either be a getResource on the dialog class or a real URL with protocol |
String |
getVersion()
Version |
static String |
makeSureTokenHasPrefix(String wfid,
long tokenId)
When you have a token from the wf, you need to prefix it. |
static void |
runWithCorrectProcessInstance(Dialog dialog,
String id,
WFStart.RunnableWithCorrectProcessInstance runnable)
|
void |
setAs(String value)
|
void |
setName(String value)
|
void |
setScope(String value)
|
void |
setUrl(String value)
|
void |
setVersion(String value)
|
| Methods inherited from class nl.innovationinvestments.cheyenne.engine.components.Component |
|---|
getDialog, getId, getLog4j, iterate, setDialog, setId, setLog4j, start, startAndfinish |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String SOURCECODE_VERSION
public static final String CONTEXT_VARIABLE_PERSIST
public static final String PROCESSID_PREFIX
| Constructor Detail |
|---|
public WFStart()
public WFStart(Dialog dialog)
dialog - | Method Detail |
|---|
public String getName()
public void setName(String value)
public String getVersion()
public void setVersion(String value)
public String getAs()
public void setAs(String value)
public String getScope()
public void setScope(String value)
public String getUrl()
public void setUrl(String value)
public void append(String s)
public void finish()
finish in class Componentpublic static boolean determineIfLongRunning(String id)
id -
public static String determineScopeId(String id)
id -
public static long determineProcessId(String id)
id -
public static long determineTokenId(String id)
id -
public static void runWithCorrectProcessInstance(Dialog dialog,
String id,
WFStart.RunnableWithCorrectProcessInstance runnable)
id - runnable -
public static String makeSureTokenHasPrefix(String wfid,
long tokenId)
wfid - tokenId -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||