|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.workflow.definer.WfDefinerServiceFwd
The WfDefinerService
is an interface containing the methods
used both in the client and server to define workflow definitions.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static String |
FC_RESOURCE
|
(package private) static boolean |
SERVER
|
Fields inherited from interface wt.method.RemoteAccess |
versionID |
Constructor Summary | |
WfDefinerServiceFwd()
|
Method Summary | |
WfConnectorTemplate |
addConnectorTemplate(WfContainerTemplate def,
WfConnectorFunction function,
WfConnectorType type)
Adds a connector template to a process template. |
NodeTemplateLink |
addLinkTemplate(WfNodeTemplate source,
WfNodeTemplate destination)
Creates a link between two definition nodes. |
WfTemplateObject |
addStepTemplate(WfContainerTemplate process_def,
WfTemplateObject step)
Adds an activity step to an existing process template. |
boolean |
canCreateWorkflowTemplate(WTUser user,
WTContainerRef context_ref)
Determines if a given user is entitled to create Workflow Templates. |
WfExpression |
compileExpression(WfExpression expression)
Compiles and, if compilation is successful, loads expression. |
WfExpression |
compileExpression(WfExpression expression,
ProcessDataInfo signature)
Compiles the expression passed as argument with the given signature. |
WfTemplateObject |
copyTemplateObject(WfTemplateObject template,
String copyName)
Produces a copy of the template object and persists it with the name passed as argument. |
WfTemplateObject |
copyTemplateObject(WfTemplateObject template,
String copyName,
WTContainerRef context_ref)
Produces a copy of the template object and persists it with the name passed as argument. |
WfBlockTemplate |
createBlockTemplate(String name,
Vector node_set)
Takes a set of nodes and builds a block out of the nodes. |
WfExpression |
createRouterExpression(WfNodeTemplate template)
Deprecated. Use instead PersistenceHelper.manager.save (WfExpression.newWfExpression (WfNodeTemplate, WfExpression.ROUTER_EXPRESSION)) |
WfExpression |
createTransitionExpression(WfTemplateObject template,
Object transition)
Deprecated. Use instead PersistenceHelper.manager.save (WfExpression.newWfExpression (node, transition)) |
void |
deleteExpression(WfTemplateObject template,
Object event)
Supported API: false |
void |
deleteProcessTemplate(WfProcessTemplate process_def)
Deletes process template passed as argument. |
void |
demoteBlockTemplate(WfBlockTemplate block_template)
Removes a block and place its constituents directly into the host process. |
Object |
executeExpression(WfExpression expression,
Object[] values)
Evaluates the expression for the given array of values. |
void |
exportTemplates(Vector wfProcessTemplateVector,
String fileName,
boolean appendFlag)
Populate a file with the csv equivalent of the Workflow Template objects Supported API: false |
Vector |
findExportImportFileNames()
Retrieve a vector of file names from the Import/Export directory Supported API: false |
Vector |
getAccessibleNodes(WfContainerTemplate template,
WfNodeTemplate start_template)
Returns all nodes (activities and connectors) that can be reached from the node passed as argument. |
Enumeration |
getActivityTemplates(WfTemplateCategory category)
Returns all activity templates of the category passed as argument. |
Enumeration |
getAllExpressions(WfNodeTemplate template)
Returns all expressions associated with template (transition and router). |
Enumeration |
getAllTemplates()
Returns an enumeration containing all process templates. |
QueryResult |
getAllTemplates(WTContainerRef context_ref)
Returns an enumeration containing all process templates for the passes WTContainerRef. |
WfExpression |
getBlockExpression(WfBlockTemplate block_template)
Returns the expression associated to the block template passed as parameter. |
Enumeration |
getConnectorTemplates(WfContainerTemplate process_def)
Returns all connector templates associated with a given process template. |
Enumeration |
getDirectlyUsedByTemplates(WfProcessTemplate template)
Returns all process templates that directly uses the process template passed as argument. |
Enumeration |
getDirectlyUsedTemplates(WfProcessTemplate template)
Returns all process templates that are directly used in the process template passed as argument. |
Enumeration |
getEnabledTemplates()
Returns an enumeration containing all enabled process templates. |
QueryResult |
getEnabledTemplates(WTContainerRef context_ref)
Returns an enumeration containing all enabled process templates in the passed WTContainer. |
Enumeration |
getEndConnectorTemplates(WfContainerTemplate process_def)
Returns an enumeration containing the end connector templates associated with the process template. |
WfProcessTemplate |
getLatestIteration(WfProcessTemplateMaster master)
Given a WfProcessTemplateMaster, return the latest iteration (WfProcessTemplate) Supported API: false |
WfProcessTemplateReference |
getLatestIteration(WfProcessTemplateMasterReference master)
Given a WfProcessTemplateMasterReference, return the latest iteration (WfProcessTemplateReference) Supported API: false |
Enumeration |
getLinkTemplates(WfContainerTemplate process_def)
Returns an enumeration (of type NodeTemplateLink) containing all link templates defined for the process. |
Enumeration |
getLinkTemplates(WfNode source,
WfNode destination)
Return an enumeration (of type NodeTemplateLink) containing all link templates between two node templates. |
private static Manager |
getManager()
|
WfProcessDefinition |
getProcessDefinition(String process_identity)
Returns a process definition given its identity. |
WfProcessDefinition |
getProcessDefinition(String process_identity,
WTContainerRef context_ref)
Returns a process definition given its identity. |
WfProcessDefinition |
getProcessDefinition(String process_identity,
WTContainerRef context_ref,
boolean hierarchical_lookup)
Returns a process definition given its identity, container reference and whether or not the process definition should be looked up hierarchically or not. |
Vector |
getProcessRoles(WfContainerTemplate process_def)
Returns a Vector of Role objects used by the process/block template passed as argument. |
ProcessStepTemplateLink |
getProcessStepTemplateLink(WfContainerTemplate process_def,
WfTemplateObject step)
Deprecated. use getProcessTemplateLink (WfTemplateObject) instead |
ProcessStepTemplateLink |
getProcessStepTemplateLink(WfTemplateObject step)
Returns the link between a node template and the containing process template. |
WfExpression |
getRobotExpression(WfRobotActivityTemplate template)
Returns router expression associated with template if it exists. |
WfExpression |
getRouterExpression(WfNodeTemplate template)
Returns router expression associated with template if it exists. |
WfConnectorTemplate |
getStartConnectorTemplate(WfContainerTemplate process_def)
Returns the start connector template associated with the process template. |
Enumeration |
getStepTemplates(WfContainerTemplate process_def,
WfTemplateObjectType type)
Returns an enumeration with existing definition objects that are contained in the process template passed as argument. |
WfExpression |
getSynchExpression(WfRobotActivityTemplate template)
Returns the fileter expression associated with template if it exists. |
Enumeration |
getTemplateObjects(WfTemplateObjectType type,
WfTemplateCategory category)
Returns an enumeration containing existing definition objects of the type and category passed as arguments. |
WfExpression |
getTransitionExpression(WfNodeTemplate template,
Object transition)
Returns the expression associated with a given process or activity template object and transiiton. |
Enumeration |
getUsedByTemplates(WfProcessTemplate template)
Returns all process templates that uses the process template passed as argument. |
Enumeration |
getUsedTemplates(WfProcessTemplate template)
Returns all process templates that are used in the process template passed as argument. |
void |
importTemplates(String fileName)
Given a file that contains a csv version of any number of Wf Process Template objects, import these objects Supported API: false |
boolean |
isTemplateInUse(ObjectReference process_template_ref)
Returns true if template is in use; false otherwise. |
int |
removeLinkTemplate(WfNodeTemplate source,
WfNodeTemplate destination)
Deletes all links between two step templates in a process process. |
WfTemplateObject |
removeStepTemplate(WfTemplateObject step_def)
Removes step template from its containing process. |
TransactionResult |
saveProcessTemplate(TransactionContainer aTran)
Store or update a WfProcessTemplate. |
TransactionResult |
saveProcessTemplate(TransactionContainer aTran,
WTContainerRef context_ref)
Store or update a WfProcessTemplate. |
WfProcessTemplate |
saveProcessTemplate(WfProcessTemplate process_def)
Saves a process template in the database. |
WfProcessTemplate |
saveProcessTemplate(WfProcessTemplate process_def,
WTContainerRef context_ref)
Saves a process template in the database. |
void |
setEnabled(WfProcessDefinition process,
boolean enabled)
Enables or disables the process template master. |
void |
setIgnoreDelete(Object obj)
Supported API: false |
WfNodeTemplate |
setParentTemplate(WfNodeTemplate node_template,
WfContainerTemplate container_template)
Sets the parent template of a node template. |
Vector |
verifyTemplate(WfProcessTemplate process_def,
boolean recurse)
Returns a report of defects in the process template. |
Vector |
whereUsed(ProjectReference project,
boolean returnOnlyFirstOccurence)
Returns a vector of references to any engine objects that use a particular Project object. |
Vector |
whereUsed(TeamReference teamRef,
boolean returnOnlyFirstOccurence)
Returns a vector of references to any engine objects that use a particular Team object. |
Vector |
whereUsed(TeamTemplateReference teamTemplateRef,
boolean returnOnlyFirstOccurence)
Returns a vector of references to any engine objects that use a particular Team Template object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final boolean SERVER
private static final String FC_RESOURCE
private static final String CLASSNAME
Constructor Detail |
public WfDefinerServiceFwd()
Method Detail |
private static Manager getManager() throws WTException
WTException
public WfConnectorTemplate addConnectorTemplate(WfContainerTemplate def, WfConnectorFunction function, WfConnectorType type) throws WTException
addConnectorTemplate
in interface WfDefinerService
def
- function
- type
-
WTException
public NodeTemplateLink addLinkTemplate(WfNodeTemplate source, WfNodeTemplate destination) throws WTException
addLinkTemplate
in interface WfDefinerService
source
- destination
-
WTException
public WfTemplateObject addStepTemplate(WfContainerTemplate process_def, WfTemplateObject step) throws WTException
The method returns the step template (which is modified to hold
a reference to the parent and another to the link). Use 'getProcessStepTemplateLink'
to get the link.
Supported API: false
addStepTemplate
in interface WfDefinerService
process_def
- step
-
WTException
public boolean canCreateWorkflowTemplate(WTUser user, WTContainerRef context_ref) throws WTException
canCreateWorkflowTemplate
in interface WfDefinerService
user
- context_ref
-
WTException
public WfExpression compileExpression(WfExpression expression) throws WTException
compileExpression
in interface WfDefinerService
expression
-
WTException
WfExpression
public WfExpression compileExpression(WfExpression expression, ProcessDataInfo signature) throws WTException
compileExpression
in interface WfDefinerService
expression
- signature
-
WTException
WfExpression
,
ProcessDataInfo
public WfTemplateObject copyTemplateObject(WfTemplateObject template, String copyName) throws WTException
copyTemplateObject
in interface WfDefinerService
template
- copyName
-
WTException
public WfTemplateObject copyTemplateObject(WfTemplateObject template, String copyName, WTContainerRef context_ref) throws WTException
copyTemplateObject
in interface WfDefinerService
template
- copyName
- context_ref
-
WTException
public WfBlockTemplate createBlockTemplate(String name, Vector node_set) throws WTException
createBlockTemplate
in interface WfDefinerService
name
- node_set
-
WTException
public WfExpression createRouterExpression(WfNodeTemplate template) throws WTException
createRouterExpression
in interface WfDefinerService
template
-
WTException
public WfExpression createTransitionExpression(WfTemplateObject template, Object transition) throws WTException
createTransitionExpression
in interface WfDefinerService
template
- transition
-
WTException
public void deleteExpression(WfTemplateObject template, Object event) throws WTException
deleteExpression
in interface WfDefinerService
template
- event
-
WTException
public void deleteProcessTemplate(WfProcessTemplate process_def) throws WTException
deleteProcessTemplate
in interface WfDefinerService
process_def
-
WTException
public void demoteBlockTemplate(WfBlockTemplate block_template) throws WTException
This operation will only be possible if links to the block are
mapped to the START action. Links to the block will be directed to
the start connector in the following way: links of the form
A -> B
, where B is a block, is transformed into A ->
S
, where S is the start connector of B and the action is FIRE.
In the case of links from the block: B -> C
, it also
wise to restrict the event to COMPLETE. The transformed link is:
E -> C
, in which the action is FIRE.
The start connector is transformed into a simple OR connector and the end connector into a simple AND connector.
Note: A block can be the target of a change of state other than
START even if there is no incoming link with this action. This happens,
for example, when the process completes/is suspended ... It issues
commands to all contained activities to do the same. In this case
a block instance behaves like a sub-process, issuing similar commands.
Supported API: false
demoteBlockTemplate
in interface WfDefinerService
block_template
-
WTException
public Object executeExpression(WfExpression expression, Object[] values) throws WTException
executeExpression
in interface WfDefinerService
expression
- values
-
WTException
WfExpression
public void exportTemplates(Vector wfProcessTemplateVector, String fileName, boolean appendFlag) throws WTException
exportTemplates
in interface WfDefinerService
wfProcessTemplateVector
- a vector of Wf Process Template objects that need to be exportedfileName
- the name of the file that the csv version of the templates should be written to (not including the .csv suffix or the directory name)appendFlag
- a flag that determines whether the exported data should overwrite any existing data or append it to the end
WTException
public Vector findExportImportFileNames() throws WTException
findExportImportFileNames
in interface WfDefinerService
WTException
public Vector getAccessibleNodes(WfContainerTemplate template, WfNodeTemplate start_template) throws WTException
getAccessibleNodes
in interface WfDefinerService
template
- start_template
-
WTException
public Enumeration getActivityTemplates(WfTemplateCategory category) throws WTException
getActivityTemplates
in interface WfDefinerService
category
-
WTException
public Enumeration getAllExpressions(WfNodeTemplate template) throws WTException
getAllExpressions
in interface WfDefinerService
template
-
WTException
WfExpression
public Enumeration getAllTemplates() throws WTException
getAllTemplates
in interface WfDefinerService
WTException
getEnabledTemplates
public QueryResult getAllTemplates(WTContainerRef context_ref) throws WTException
getAllTemplates
in interface WfDefinerService
context_ref
-
WTException
getEnabledTemplates
public WfExpression getBlockExpression(WfBlockTemplate block_template) throws WTException
getBlockExpression
in interface WfDefinerService
block_template
-
WTException
public Enumeration getConnectorTemplates(WfContainerTemplate process_def) throws WTException
getConnectorTemplates
in interface WfDefinerService
process_def
-
WTException
public Enumeration getDirectlyUsedByTemplates(WfProcessTemplate template) throws WTException
getDirectlyUsedByTemplates
in interface WfDefinerService
template
-
WTException
public Enumeration getDirectlyUsedTemplates(WfProcessTemplate template) throws WTException
getDirectlyUsedTemplates
in interface WfDefinerService
template
-
WTException
public Enumeration getEnabledTemplates() throws WTException
getEnabledTemplates
in interface WfDefinerService
WTException
getAllTemplates
public QueryResult getEnabledTemplates(WTContainerRef context_ref) throws WTException
getEnabledTemplates
in interface WfDefinerService
context_ref
-
WTException
getAllTemplates
public Enumeration getEndConnectorTemplates(WfContainerTemplate process_def) throws WTException
getEndConnectorTemplates
in interface WfDefinerService
process_def
-
WTException
public WfProcessTemplate getLatestIteration(WfProcessTemplateMaster master) throws WTException
getLatestIteration
in interface WfDefinerService
master
-
WTException
public WfProcessTemplateReference getLatestIteration(WfProcessTemplateMasterReference master) throws WTException
getLatestIteration
in interface WfDefinerService
master
-
WTException
public Enumeration getLinkTemplates(WfContainerTemplate process_def) throws WTException
getLinkTemplates
in interface WfDefinerService
process_def
-
WTException
public Enumeration getLinkTemplates(WfNode source, WfNode destination) throws WTException
getLinkTemplates
in interface WfDefinerService
source
- destination
-
WTException
public WfProcessDefinition getProcessDefinition(String process_identity) throws WTException
Tries first to find a master with the identity equal
to the one passed as argument; if not found, searches for an iteration.
Supported API: false
getProcessDefinition
in interface WfDefinerService
process_identity
-
WTException
public WfProcessDefinition getProcessDefinition(String process_identity, WTContainerRef context_ref) throws WTException
Tries first to find a master with the identity equal
to the one passed as argument; if not found, searches for an iteration.
Supported API: false
getProcessDefinition
in interface WfDefinerService
process_identity
- context_ref
-
WTException
public Vector getProcessRoles(WfContainerTemplate process_def) throws WTException
getProcessRoles
in interface WfDefinerService
process_def
-
WTException
public ProcessStepTemplateLink getProcessStepTemplateLink(WfContainerTemplate process_def, WfTemplateObject step) throws WTException
getProcessStepTemplateLink
in interface WfDefinerService
process_def
- step
-
WTException
public ProcessStepTemplateLink getProcessStepTemplateLink(WfTemplateObject step) throws WTException
getProcessStepTemplateLink
in interface WfDefinerService
step
-
WTException
public WfExpression getRobotExpression(WfRobotActivityTemplate template) throws WTException
getRobotExpression
in interface WfDefinerService
template
-
WTException
WfExpression
public WfExpression getRouterExpression(WfNodeTemplate template) throws WTException
getRouterExpression
in interface WfDefinerService
template
-
WTException
WfExpression
public WfConnectorTemplate getStartConnectorTemplate(WfContainerTemplate process_def) throws WTException
getStartConnectorTemplate
in interface WfDefinerService
process_def
-
WTException
public Enumeration getStepTemplates(WfContainerTemplate process_def, WfTemplateObjectType type) throws WTException
getStepTemplates
in interface WfDefinerService
process_def
- type
-
WTException
public WfExpression getSynchExpression(WfRobotActivityTemplate template) throws WTException
getSynchExpression
in interface WfDefinerService
template
-
WTException
WfExpression
public Enumeration getTemplateObjects(WfTemplateObjectType type, WfTemplateCategory category) throws WTException
getTemplateObjects
in interface WfDefinerService
type
- category
-
WTException
public WfExpression getTransitionExpression(WfNodeTemplate template, Object transition) throws WTException
getTransitionExpression
in interface WfDefinerService
template
- transition
-
WTException
WfExpression
public Enumeration getUsedByTemplates(WfProcessTemplate template) throws WTException
getUsedByTemplates
in interface WfDefinerService
template
-
WTException
public Enumeration getUsedTemplates(WfProcessTemplate template) throws WTException
getUsedTemplates
in interface WfDefinerService
template
-
WTException
public void importTemplates(String fileName) throws WTException
importTemplates
in interface WfDefinerService
fileName
- the name of the file that the csv version of the templates should be imported from (not including the .csv extension or the directory name)
WTException
public boolean isTemplateInUse(ObjectReference process_template_ref) throws WTException
isTemplateInUse
in interface WfDefinerService
process_template_ref
-
WTException
public int removeLinkTemplate(WfNodeTemplate source, WfNodeTemplate destination) throws WTException
removeLinkTemplate
in interface WfDefinerService
source
- destination
-
WTException
public WfTemplateObject removeStepTemplate(WfTemplateObject step_def) throws WTException
removeStepTemplate
in interface WfDefinerService
step_def
-
WTException
public TransactionResult saveProcessTemplate(TransactionContainer aTran) throws WTException, WfException
saveProcessTemplate
in interface WfDefinerService
aTran
- a TransactionContainer that contains a set of LifeCycleTemplate, PhaseTemplate, AdHocNotificationList, AdHocAclSpec, and Criterion assertions that need to be applied against one or more LifeCycleTemplate objects
WTException
WfException
public TransactionResult saveProcessTemplate(TransactionContainer aTran, WTContainerRef context_ref) throws WTException, WfException
saveProcessTemplate
in interface WfDefinerService
aTran
- context_ref
-
WTException
WfException
public WfProcessTemplate saveProcessTemplate(WfProcessTemplate process_def) throws WTException
saveProcessTemplate
in interface WfDefinerService
process_def
-
WTException
public WfProcessTemplate saveProcessTemplate(WfProcessTemplate process_def, WTContainerRef context_ref) throws WTException
saveProcessTemplate
in interface WfDefinerService
process_def
- context_ref
-
WTException
public void setEnabled(WfProcessDefinition process, boolean enabled) throws WTException
setEnabled
in interface WfDefinerService
process
- enabled
-
WTException
public void setIgnoreDelete(Object obj) throws WTException
setIgnoreDelete
in interface WfDefinerService
obj
-
WTException
public WfNodeTemplate setParentTemplate(WfNodeTemplate node_template, WfContainerTemplate container_template) throws WTException
setParentTemplate
in interface WfDefinerService
node_template
- container_template
-
WTException
public Vector verifyTemplate(WfProcessTemplate process_def, boolean recurse) throws WTException
verifyTemplate
in interface WfDefinerService
process_def
- recurse
-
WTException
public Vector whereUsed(ProjectReference project, boolean returnOnlyFirstOccurence) throws WTException
whereUsed
in interface WfDefinerService
project
- returnOnlyFirstOccurence
- this boolean parameter determines whether to return all objects that use the Project object or only the first usage. This parameter was added for performance reasons and the occasional need to only know that the project is used.
WTException
public Vector whereUsed(TeamReference teamRef, boolean returnOnlyFirstOccurence) throws WTException
whereUsed
in interface WfDefinerService
teamRef
- returnOnlyFirstOccurence
- this boolean parameter determines whether to return all objects that use the Project object or only the first usage. This parameter was added for performance reasons and the occasional need to only know that the project is used.
WTException
public Vector whereUsed(TeamTemplateReference teamTemplateRef, boolean returnOnlyFirstOccurence) throws WTException
whereUsed
in interface WfDefinerService
teamTemplateRef
- returnOnlyFirstOccurence
- this boolean parameter determines whether to return all objects that use the Project object or only the first usage. This parameter was added for performance reasons and the occasional need to only know that the project is used.
WTException
public WfProcessDefinition getProcessDefinition(String process_identity, WTContainerRef context_ref, boolean hierarchical_lookup) throws WTException
Tries first to find a master
with the identity equal to the one passed as argument; if not found,
searches for an iteration.
Supported API: false
getProcessDefinition
in interface WfDefinerService
process_identity
- context_ref
- hierarchical_lookup
-
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |