public abstract class WorkflowClient extends EventProducer
| Modifier and Type | Class and Description |
|---|---|
static class |
WorkflowClient.WorkflowType
Either workflow template or workflow instance
|
| Modifier and Type | Field and Description |
|---|---|
protected URI |
engineURL |
protected static String |
GRAPH_MIME_TYPE |
protected static org.slf4j.Logger |
logger |
protected static String |
PNG_MIME_TYPE |
protected static String |
PROCESS_GPEL_TITLE |
protected static String |
PROCESS_WSDL_TYTLE |
| Constructor and Description |
|---|
WorkflowClient() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
connect() |
URI |
createScriptAndDeploy(Workflow workflow,
boolean redeploy)
Deploys a workflow to the GPEL Engine.
|
abstract URI |
deploy(Workflow workflow,
boolean redeploy) |
URI |
getEngineURL() |
abstract org.gpel.client.GcInstance |
instantiate(Workflow workflow,
Map<String,xsul5.wsdl.WsdlDefinitions> wsdlMap)
Deprecated.
|
org.gpel.client.GcInstance |
instantiate(Workflow workflow,
URI dscURL) |
abstract org.gpel.client.GcInstance |
instantiate(Workflow workflow,
URI dscURL,
String name) |
protected boolean |
isConnected()
Checks if the client is connected to the BPEL engine.
|
boolean |
isSecure() |
org.gpel.client.GcSearchList |
list()
Returns the List of GcSearchResult.
|
abstract org.gpel.client.GcSearchList |
list(int maxNum,
WorkflowClient.WorkflowType type)
Returns the List of GcSearchResult.
|
Workflow |
load(URI templateID)
Loads a workflow with s specified workflow template ID.
|
abstract Workflow |
load(URI id,
WorkflowClient.WorkflowType workflowType) |
void |
setEngineURL(URI engineURL) |
abstract void |
setXBayaEngine(XBayaEngine xBayaEngine) |
abstract xsul5.wsdl.WsdlDefinitions |
start(org.gpel.client.GcInstance instance)
Starts the workflow instance.
|
addEventListener, removeEventListener, sendEvent, sendSafeEventprotected static final String PROCESS_WSDL_TYTLE
protected static final String PROCESS_GPEL_TITLE
protected static final String PNG_MIME_TYPE
protected static final String GRAPH_MIME_TYPE
protected static final org.slf4j.Logger logger
protected URI engineURL
public void setEngineURL(URI engineURL) throws WorkflowEngineException
engineURL - WorkflowEngineExceptionpublic URI getEngineURL()
public URI createScriptAndDeploy(Workflow workflow, boolean redeploy) throws GraphException, WorkflowEngineException
workflow - redeploy - GraphExceptionWorkflowEngineExceptionpublic Workflow load(URI templateID) throws GraphException, WorkflowEngineException, ComponentException
templateID - The workflow template ID.GraphExceptionWorkflowEngineExceptionComponentExceptionpublic org.gpel.client.GcSearchList list()
throws WorkflowEngineException
WorkflowEngineExceptionpublic org.gpel.client.GcInstance instantiate(Workflow workflow, URI dscURL) throws WorkflowEngineException, ComponentException, GraphException
workflow - dscURL - WorkflowEngineExceptionComponentExceptionGraphExceptionpublic boolean isSecure()
protected boolean isConnected()
public abstract URI deploy(Workflow workflow, boolean redeploy) throws WorkflowEngineException
workflow - redeploy - WorkflowEngineExceptionpublic abstract Workflow load(URI id, WorkflowClient.WorkflowType workflowType) throws GraphException, WorkflowEngineException, ComponentException
id - workflowType - GraphExceptionWorkflowEngineExceptionComponentExceptionpublic abstract org.gpel.client.GcSearchList list(int maxNum,
WorkflowClient.WorkflowType type)
throws WorkflowEngineException
maxNum - The maximum number of resultstype - WorkflowEngineExceptionpublic abstract org.gpel.client.GcInstance instantiate(Workflow workflow, URI dscURL, String name) throws WorkflowEngineException, ComponentException, GraphException
workflow - The workflow to instantiate.dscURL - The URL of the DSC.name - The name that becomes a part of the workflow instance name.WorkflowEngineExceptionComponentExceptionGraphException@Deprecated public abstract org.gpel.client.GcInstance instantiate(Workflow workflow, Map<String,xsul5.wsdl.WsdlDefinitions> wsdlMap) throws WorkflowEngineException
workflow - wsdlMap - MapWorkflowEngineExceptionpublic abstract xsul5.wsdl.WsdlDefinitions start(org.gpel.client.GcInstance instance)
throws WorkflowEngineException
instance - WorkflowEngineExceptionpublic abstract void connect()
throws WorkflowEngineException
WorkflowEngineExceptionpublic abstract void setXBayaEngine(XBayaEngine xBayaEngine)
Copyright © 2011–2014 The Apache Software Foundation. All rights reserved.