|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.workflow.definer.StandardWfDefinerService
Standard implementation of the definer service.
Use the newStandardWfDefinerService
static factory method(s),
not the StandardWfDefinerService
constructor, to construct
instances of this class. Instances must be constructed using the static
factory(s), in order to ensure proper initialization of the instance.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static Object |
IGNORE_DELETE_KEY
|
private KeyedEventListener |
listener
|
private static int |
MAX_REPORT_LENGTH
|
private static String |
RESOURCE
|
private static String |
SYSTEM_DOMAIN
|
private static boolean |
VERBOSE
|
private WfProcessTemplateCache |
wfProcessTemplateCache
|
Fields inherited from class wt.services.StandardManager |
|
Fields inherited from interface wt.services.Manager |
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE |
Constructor Summary | |
StandardWfDefinerService()
|
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. |
private void |
checkDisable(WfProcessTemplateMaster master)
Throws exception if any process template iteration or the template master or any of its iterations is being used by an enabled template. |
private void |
checkFolder(WfProcessTemplate process_template)
Throws exception if process template is not in the personal cabinet or in the system cabinet |
private void |
checkWfObject(Persistable target)
Throws exception if target belongs to a process that can't be changed. |
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. |
private WfContainerTemplate |
copyContainerTemplate(WfContainerTemplate template,
WfContainerTemplate templateCopy)
Copies container template and all associated steps and connectors. |
private void |
copyTemplateExpressions(WfNodeTemplate source,
WfNodeTemplate destination)
Copies and persists all expressions associated with the given template. |
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)) |
private void |
deleteContainedObjects(WfContainerTemplate process_def)
Deletes all contained objects in a given process template. |
void |
deleteExpression(WfTemplateObject template,
Object event)
Supported API: false |
private void |
deleteExpressions(WfTemplateObject template)
Deletes all expressions associated with the given object template. |
private WfTemplateObject |
deleteProcessStepTemplateLink(WfTemplateObject step)
Deletes the process step template link from the node if it exists. |
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. |
protected void |
dispatchVetoableEvent(String event_type,
Object target)
Creates and dispatches event that may be vetoed by another services. |
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). |
protected void |
getAllStepTemplates(WfContainerTemplate process_def,
Vector steps)
Returns all step templates contained in a container template. |
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. |
String |
getConceptualClassname()
Deprecated. |
Enumeration |
getConnectorTemplates(WfContainerTemplate process_def)
Returns all connector templates associated with a given process template. |
protected QueryResult |
getCurrentDirectlyUsedBy(WfProcessTemplate template)
Returns all process templates that directly uses the process template passed as argument as a current proxy. |
private static WTContainerRef |
getDefaultContainer()
|
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. |
private ObjectIdentifier |
getId(Object object)
Helper method that extracts object identifier. |
private Object |
getIgnoreDelete()
|
protected QueryResult |
getLatestDirectlyUsedBy(WfProcessTemplate template)
Returns all process templates that directly uses the process template passed as argument as a latest proxy. |
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. |
protected WfContainerTemplateReference |
getParentProcessTemplate(WfTemplateObject template)
|
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. |
private QueryResult |
getProcessTemplates(WTContainerRef context_ref,
boolean only_enabled)
|
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. |
private Enumeration |
getValidSuccessors(WfNodeTemplate node)
Returns all valid successor nodes of a given node. |
protected WfProcessTemplateCache |
getWfProcessTemplateCache()
Caching methods * |
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 |
isSafeToDelete(WfProcessTemplate template)
Returns whether the process template is not used by another and can be safely deleted. |
boolean |
isTemplateInUse(ObjectReference process_template_ref)
Returns true if template is in use; false otherwise. |
private String |
linkToString(NodeTemplateLink link)
Returns condensed readable identity of the link. |
static StandardWfDefinerService |
newStandardWfDefinerService()
Default factory for the class. |
private String |
nodeToString(WfNodeTemplate node)
Returns condensed readable identity of the node. |
protected void |
performStartupProcess()
Performs initialization of the definer service. |
private void |
registerAsListener()
Register as listener to the following events: PersistenceManagerEvent.POST_CHANGE_DOMAIN PersistenceManagerEvent.PRE_STORE PersistenceManagerEvent.PRE_MODIFY PersistenceManagerEvent.PRE_DELETE WorkInProgressServiceEvent.PRE_CHECKIN WorkInProgressServiceEvent.POST_CHECKOUT VersionControlServiceEvent.POST_INSERT_ITERATION The objects of interest are workflow objects, more specifically, node templates (processes, activities and connectors) and expressions. |
void |
registerEvents(ManagerService ms)
Register events with the passed ManagerService. |
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 |
private void |
setLinkPair(NodeTemplateLink link,
Object event,
Object action)
Deletes all existing pairs from the link and sets the new pair passed as argumen. |
WfNodeTemplate |
setParentTemplate(WfNodeTemplate node_template,
WfContainerTemplate container_template)
Sets the parent template of a node template. |
private void |
showTemplateVector(Vector template_vector)
Prints all templates contained in a vector. |
private void |
updateNodeObjectsDomain(WfContainerTemplate template)
Changes the domain of all contained steps to the new domain of the container. |
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, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private KeyedEventListener listener
private static boolean VERBOSE
private static String SYSTEM_DOMAIN
private static final Object IGNORE_DELETE_KEY
private static int MAX_REPORT_LENGTH
private WfProcessTemplateCache wfProcessTemplateCache
Constructor Detail |
public StandardWfDefinerService()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
protected void performStartupProcess() throws ManagerException
performStartupProcess
in class StandardManager
ManagerException
protected void dispatchVetoableEvent(String event_type, Object target) throws WTException
event_type
- target
-
WTException
public void registerEvents(ManagerService ms)
registerEvents
in interface Manager
registerEvents
in class StandardManager
ms
- the ManagerService with which to register events.public static StandardWfDefinerService newStandardWfDefinerService() 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
private QueryResult getProcessTemplates(WTContainerRef context_ref, boolean only_enabled) throws WTException
WTException
protected void getAllStepTemplates(WfContainerTemplate process_def, Vector steps) throws WTException
WTException
private WfTemplateObject deleteProcessStepTemplateLink(WfTemplateObject step) throws WTException
WTException
private void checkWfObject(Persistable target) throws WTException
A process template can't be changed if the user has insufficient privileges or it is being used by an open process.
target
- - workflow node or expression
wt.util.WTException,
- thrown if host template can't be modified
WTException
private void checkFolder(WfProcessTemplate process_template) throws WTException
process_template
- - process template to be stored
wt.util.WTException,
- thrown if template is in use.
WTException
private void checkDisable(WfProcessTemplateMaster master) throws WTException
master
- - process template master to be disabled
wt.util.WTException,
- thrown if template is in use.
WTException
private void copyTemplateExpressions(WfNodeTemplate source, WfNodeTemplate destination) throws WTException
source
- - template that owns expressions to be copieddestination
- - template to which the copied expressions will be associated
WTException
private void deleteContainedObjects(WfContainerTemplate process_def) throws WTException
process_def
-
WTException
private void deleteExpressions(WfTemplateObject template) throws WTException
template
-
WTException
private WfContainerTemplate copyContainerTemplate(WfContainerTemplate template, WfContainerTemplate templateCopy) throws WTException
template
- - template to be copiedtemplateCopy
- - copy recipient
WTException
private String nodeToString(WfNodeTemplate node)
node
- - WfNode to be printed outprivate void showTemplateVector(Vector template_vector)
template_vector
- - vector containing process templatesprivate String linkToString(NodeTemplateLink link)
link
- - WfLink to be printed outprivate void setLinkPair(NodeTemplateLink link, Object event, Object action) throws WTException
link
- - WfLink to be printed outevent
- - Object eventaction
- - Object action
WTException
private Enumeration getValidSuccessors(WfNodeTemplate node) throws WTException
node
- - node to be expanded
WTException
private void registerAsListener() throws ManagerException
ManagerException
protected QueryResult getCurrentDirectlyUsedBy(WfProcessTemplate template) throws WTException
template
-
WTException
protected QueryResult getLatestDirectlyUsedBy(WfProcessTemplate template) throws WTException
template
-
WTException
public boolean isSafeToDelete(WfProcessTemplate template) throws WTException
template
-
WTException
protected WfContainerTemplateReference getParentProcessTemplate(WfTemplateObject template) throws WTException
WTException
protected WfProcessTemplateCache getWfProcessTemplateCache()
private Object getIgnoreDelete()
private ObjectIdentifier getId(Object object)
private void updateNodeObjectsDomain(WfContainerTemplate template) throws WTException
WTException
private static WTContainerRef getDefaultContainer() throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |