Class WFNode
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
Can this node be activated? A script can set this value to prevent the activation of the node.protected String
Comment text for the node.protected String
Translation-keyword forcomment
.protected String
The node is displayed to the user at this date.protected int
An active person node (Activate is set) might be displayed to the user delayed by this number of days.protected int
A group ID to constrain access to the node.protected int
Grouping of nodes for function takeWorkFlowNode.protected int
A group ID or user ID that was originally assigned in the designer.protected String
The node was activated on this date.protected String
The node was exited/completed on this date.protected int
Control flags for the node, a combination of WFNodeC.FLAG_* constants.protected String
Multipurpose field.protected String
Object-GUID of an icon file that is displayed in the designer.protected int
Node ID.protected String
The date when the node was last used(activated or completed).protected int
The activation state of the node.protected String
Display name by forwarding.protected String
Translation-keyword forlabel
.protected int
If a cycle is re-entered, the nodes in the cycle are duplicated.protected String
The node description (work instruction).protected String
Translation-keyword forname
.protected int
The number of predecessor nodes that must be processed to forward this collector node.protected String[]
Group names of index values (DocMaskLine.key resp.protected String
A script or plugin name that is called, if a workflow node is entered.protected String
A script or plugin name that is called when an error occurs inside a workflow script.protected String
A script or plugin name that is called, if a workflow node is exited.protected String
A script or plugin name that is called when an error occurs inside a workflow script.protected boolean
True, if the node exceeds the time limit.protected int
The X position in the designer view.protected int
The Y position in the designer view.protected int
Node priortiy: 0...high, 1...medium, 2...low.protected String
Server ID (resp.protected String
Node properties.protected String
Return value of a sub-workflow.protected int
Deprecated.Use #returnValueprotected String[]
Script names used as action scripts in buttons when forwarding a person node.protected int
Id of the active sub-workflow.protected int
ID, GUID or name of the sub-workflow template.protected int
reserved.protected int
The time-limit to process the node.protected WFTimeLimit[]
Additional definitions for time limits.protected String
After this date the node exceeds the time-limit for processing.protected int
The node type.protected String
The workflow node is deferred until this date.protected int
This user has to edit the node.protected String
The name of the user that has the IDuserId
This member is only valid for person nodes.protected String
The ID of the user who has forwarded the node.protected String
A value depending on the type of the node.Fields inherited from class byps.BValueClass
bypsClient, changedMembers, dbHelper, FLAG_SEALED
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
int
int
getFlags()
int
getId()
int
getLabel()
int
getName()
int
String[]
int
getPosX()
int
getPosY()
int
getPrio()
int
Deprecated.UsegetReturnValue()
.String[]
int
int
int
getTag()
int
int
getType()
int
boolean
boolean
void
setAllowActivate
(boolean allowActivate) void
setComment
(String comment) void
setCommentTranslationKey
(String commentTranslationKey) void
setDelayDateIso
(String delayDateIso) void
setDelayDays
(int delayDays) void
setDepartment2
(int department2) void
setDepartmentGroup
(int departmentGroup) void
setDesignDepartment
(int designDepartment) void
setEnterDateIso
(String enterDateIso) void
setExitDateIso
(String exitDateIso) void
setFlags
(int flags) void
setFormSpec
(String formSpec) void
void
setId
(int id) void
setInUseDateIso
(String inUseDateIso) void
setIsNext
(int isNext) void
void
setLabelTranslationKey
(String labelTranslationKey) void
setMoveCyclePosX
(int moveCyclePosX) void
void
setNameTranslationKey
(String nameTranslationKey) void
setNbOfDonesToExit
(int nbOfDonesToExit) void
setObjKeyNames
(String[] okeyNames) void
setOnEnter
(String onEnter) void
setOnEnterHandleRollback
(String onEnterHandleRollback) void
void
setOnExitHandleRollback
(String onExitHandleRollback) void
setOverTimeLimit
(boolean overTimeLimit) void
setPosX
(int posX) void
setPosY
(int posY) void
setPrio
(int prio) void
setProcessOnServerId
(String processOnServerId) void
setProperties
(String properties) void
setReturnValue
(String returnValue) void
setRetVal
(int retVal) Deprecated.void
setScriptNames
(String[] scriptNames) void
setSubFlowId
(int subFlowId) void
setSubTemplateId
(int n) void
setTag
(int tag) void
setTimeLimit
(int timeLimit) void
setTimeLimitEscalations
(WFTimeLimit[] timeLimitEscalation) void
setTimeLimitIso
(String timeLimitIso) void
setType
(int type) void
setUserDelayDateIso
(String userDelayDateIso) void
setUserId
(int userId) void
setUserName
(String userName) void
setUserTerminate
(String userTerminate) void
setYesNoCondition
(String yesNoCondition) toString()
Methods inherited from class byps.BValueClass
getBypsClient, getChangedMembers, getDbHelper, isChangedMember, isSealed, seal, seal, setBypsClient, setChangedMember, setChangedMembers, setDbHelper
-
Field Details
-
allowActivate
protected boolean allowActivateCan this node be activated? A script can set this value to prevent the activation of the node. This member is valid for all node types. -
comment
Comment text for the node. This member is valid for all node types. -
delayDays
protected int delayDaysAn active person node (Activate is set) might be displayed to the user delayed by this number of days. Only valid for person nodes. -
department2
protected int department2A group ID to constrain access to the node. Only members of this group are allowed to see and process the node. Only valid for person nodes. -
designDepartment
protected int designDepartmentA group ID or user ID that was originally assigned in the designer.
-
enterDateIso
The node was activated on this date. This member is valid for all node types. -
exitDateIso
The node was exited/completed on this date. This member is valid for all node types. -
flags
protected int flagsControl flags for the node, a combination of WFNodeC.FLAG_* constants. For start nodes (TYPE_BEGINNODE), the flags should be specified in WFDiagram.flags. To ensure compatibility with older client programs, the WFNode.flags of the start node are or-ed with the WFDiagram.flags. This member is valid for all node types.- See Also:
-
id
protected int idNode ID. This member is valid for all node types. -
inUseDateIso
The date when the node was last used(activated or completed). This member is valid for all node types. -
isNext
protected int isNextThe activation state of the node. This member is valid for all node types. -
moveCyclePosX
protected int moveCyclePosXIf a cycle is re-entered, the nodes in the cycle are duplicated. The copied nodes will be placed in the designer moved by this value to the right. If this value is 0, the nodes are moved 60 points right and 20 points up. This member is valid for all node types. -
name
The node description (work instruction). This member is valid for all node types. -
nbOfDonesToExit
protected int nbOfDonesToExitThe number of predecessor nodes that must be processed to forward this collector node. A value of -1 means that all predecessor nodes must be processed. If set to 0, the collect node switches when it is activated regardless of the state of the predecessor nodes. This member is only valid for collect nodes. -
onEnter
A script or plugin name that is called, if a workflow node is entered. In order to capture this workflow event in JavaScript, store a script file that defines a function named onEnterNode in a sub-folder of "Indexserver Scripting Base/_ALL" or "Indexserver Scripting Base/instancename".function onEnterNode(ci, userId, workflow, nodeId) { // ci ... ClientInfo object of the user that forwards the workflow. // userId ... The calling user's ID (Integer) // workflow ... WFDiagram object // nodeId ... The activated node ID (Integer) ... }
If onEnter starts with a plugin's Bundle-SymbolicName, the event is delegated to function
This member is valid for all node types.onEnterWorkflowNode
of aWorkflowNodeEvents
object. Such object is created byWorkflowNodeEventsFactory.create
implemented in the plugin. Optionally, a path can be appended to the Bundle-SymbolicName which is passed toWorkflowNodeEventsFactory.create
. This path has to start with a forward slash. E.g. onEnter="com.partner.wfevents/invoice-solution". -
onExit
A script or plugin name that is called, if a workflow node is exited. In order to capture this workflow event in JavaScript, store a script file that defines a function named onExitNode in a sub-folder of "Indexserver Scripting Base/_ALL" or "Indexserver Scripting Base/instancename".function onExitNode(ci, userId, workflow, nodeId) { // ci ... ClientInfo object of the user that forwards the workflow. // userId ... The calling user's ID (Integer) // workflow ... WFDiagram object // nodeId ... The deactivated node ID (Integer) ... }
If onExit starts with a plugin's Bundle-SymbolicName, the event is delegated to function
This member is valid for all node types.WorkflowNodeEvents.onExitWorkflowNode(de.elo.ix.client.IXServerEventsContext, de.elo.ix.client.WFDiagram, int)
of aWorkflowNodeEvents
object returned from a call toWorkflowNodeEventsFactory.create(de.elo.ix.client.IXServerEventsContext, java.lang.String)
. Optionally, a path can be appended to the Bundle-SymbolicName which is passed toWorkflowNodeEventsFactory.create(de.elo.ix.client.IXServerEventsContext, java.lang.String)
. This path has to start with a forward slash. E.g. onEnter="com.partner.wfevents/invoice-solution". -
onEnterHandleRollback
A script or plugin name that is called when an error occurs inside a workflow script. All onEnterHandleRollback scripts, from one person node to the next person node, are stored in a temporary queue and all will get executed if an error inside a script occurs. The onEnterHandleRollBack script is not meant for dealing with an error in the onEnter Script, the script will only get stored in the temporary queue if the onEnter script was executed without any issues.In order to capture this workflow event in JavaScript, store a script file that defines a function named onEnterHandleRollbackNode in a sub-folder of "Indexserver Scripting Base/_ALL" or "Indexserver Scripting Base/instancename".
function onEnterHandleRollbackNode(ci, userId, workflow, nodeId) { // ci ... ClientInfo object of the user that forwards the workflow. // userId ... The calling user's ID (Integer) // workflow ... WFDiagram object // nodeId ... The deactivated node ID (Integer) ... }
If onEnterHandleRollback starts with a plugin's Bundle-SymbolicName, the event is delegated to function
This member is valid for all node types.WorkflowNodeEvents.onEnterHandleRollbackWorkflowNode(IXServerEventsContext, WFDiagram, int)
of aWorkflowNodeEvents
object returned from a call toWorkflowNodeEventsFactory.create(de.elo.ix.client.IXServerEventsContext, java.lang.String)
. Optionally, a path can be appended to the Bundle-SymbolicName which is passed toWorkflowNodeEventsFactory.create(de.elo.ix.client.IXServerEventsContext, java.lang.String)
. This path has to start with a forward slash. E.g. onEnterHandleRollback="com.partner.wfevents/invoice-solution".- Since:
- 21.02.000.005
-
onExitHandleRollback
A script or plugin name that is called when an error occurs inside a workflow script. All onExitHandleRollback scripts, from one person node to the next person node, are stored in a temporary queue and all will get executed if an error inside a script occurs. The onExitHandleRollback script is not meant for dealing with an error in the onExit Script, the script will only get stored in the temporary queue if the onExit script was executed without any issues.In order to capture this workflow event in JavaScript, store a script file that defines a function named onExitHandleRollbackNode in a sub-folder of "Indexserver Scripting Base/_ALL" or "Indexserver Scripting Base/instancename".
function onExitHandleRollbackNode(ci, userId, workflow, nodeId) { // ci ... ClientInfo object of the user that forwards the workflow. // userId ... The calling user's ID (Integer) // workflow ... WFDiagram object // nodeId ... The deactivated node ID (Integer) ... }
If onExitHandleRollback starts with a plugin's Bundle-SymbolicName, the event is delegated to function
This member is valid for all node types.WorkflowNodeEvents.onExitHandleRollbackWorkflowNode(de.elo.ix.client.IXServerEventsContext, de.elo.ix.client.WFDiagram, int)
of aWorkflowNodeEvents
object returned from a call toWorkflowNodeEventsFactory.create(de.elo.ix.client.IXServerEventsContext, java.lang.String)
. Optionally, a path can be appended to the Bundle-SymbolicName which is passed toWorkflowNodeEventsFactory.create(de.elo.ix.client.IXServerEventsContext, java.lang.String)
. This path has to start with a forward slash. E.g. onExitHandleRollback="com.partner.wfevents/invoice-solution".- Since:
- 21.02.000.005
-
posX
protected int posXThe X position in the designer view. This member is valid for all node types. -
posY
protected int posYThe Y position in the designer view. This member is valid for all node types. -
tag
protected int tagreserved. DB column: wf_tag -
timeLimit
protected int timeLimitThe time-limit to process the node. Measured in minutes. This member is only valid for person nodes. -
timeLimitIso
After this date the node exceeds the time-limit for processing. This member is only valid for person nodes. Read-only. -
type
protected int typeThe node type. This member is set to one of the TYPE_* constants in WFNodeC.- See Also:
-
userId
protected int userIdThis user has to edit the node. This member is only valid for person nodes. -
userName
The name of the user that has the IDuserId
This member is only valid for person nodes.- See Also:
-
userTerminate
The ID of the user who has forwarded the node. Not valid for template workflows. This member is only valid for person nodes. -
yesNoCondition
A value depending on the type of the node.WFNodeC.TYPE_IFNODE
: test condition. Numeric values must be formatted according to the servers locale. Date values ofAspectLineC.TYPE_ISO_DATE_ONLY
orAspectLineC.TYPE_ISO_DATE_TIME
must be given as ISO date values in timezone UTC.WFNodeC.TYPE_SPLITNODE
: sets the workflow status to this value.WFNodeC.getTYPE_BEGINNODE()
: contains workflow status.WFNodeC.TYPE_CYCLE
: condition that evaluates true to leave the cycle. -
delayDateIso
The node is displayed to the user at this date. This date is computed by enterDateIso + delayDays. This member is only valid for person nodes. Read-only. -
overTimeLimit
protected boolean overTimeLimitTrue, if the node exceeds the time limit. This member is only valid for person nodes in active or finished workflows. Read-only.- Since:
- 6.00.098
- See Also:
-
userDelayDateIso
The workflow node is deferred until this date. This member is only valid for person nodes in active or finished workflows. ISO date format.- Since:
- 7.00.000.000
-
processOnServerId
Server ID (resp. replication branch). This member is only valid for nodes of typeWFNodeC.TYPE_SET_SERVER_ID
. and should be set to the name of a existingReplSetName.name
. After node is processed, updates value inWFDiagram.processOnServerId
and stops processing. Further Workflow processing will be halted and only continued after replication on the server with the given ID.- Since:
- 7.00.000.015
- See Also:
-
timeLimitEscalations
Additional definitions for time limits. This member is only valid for person nodes.- Since:
- 7.00.000.016
- See Also:
-
objKeyNames
Group names of index values (DocMaskLine.key resp. ObjKey.name) for which an edit box is to be displayed when forwarding a person node. This member is only valid for person nodes.- Since:
- 7.00.000.021
- See Also:
-
scriptNames
Script names used as action scripts in buttons when forwarding a person node. Script files for the Windows CLIENT have to be named as ELOWF_ + scriptNames[.]. This member is only valid for person nodes.- Since:
- 7.00.000.021
-
iconId
Object-GUID of an icon file that is displayed in the designer.- Since:
- 7.00.040.012
- See Also:
-
formSpec
Multipurpose field.If the node is a collect node (type=
WFNodeC.TYPE_COLLECTNODE
), formSpec contains a comma separated list of node IDs. This nodes are deactivated when the collect node forwards the workflow. In addition to a list of IDs, the value ofWFNodeC.DEACTIVATE_ALL_PREDS
causes to deactivate all predecessor nodes.In case of a person node (
WFNodeC.TYPE_PERSONNODE
), formSpec can contain proprietary encoded information about a workflow form.- Since:
- 7.00.040.012
-
nameTranslationKey
Translation-keyword forname
.- Since:
- 9.00.018.005
-
commentTranslationKey
Translation-keyword forcomment
.- Since:
- 9.00.018.005
-
label
Display name by forwarding.- Since:
- 9.00.022.019
-
properties
Node properties. Maximum byte size of this string in UTF-8 encoding is constrained toFileDataC.MAX_BLOB_LENGTH
.- Since:
- 9.00.022.018
-
departmentGroup
protected int departmentGroupGrouping of nodes for function takeWorkFlowNode. A non-zero value binds nodes with the same value to a group of nodes that is evaluated inIXServicePortIF.takeWorkFlowNode(ClientInfo, int, int, String, int, LockZ)
. The function takeWorkFlowNodes takes - in addition to the given node - all nodes with the same group assignment specified by this member. This member is only used as a marker and is not interpreted as a group or user ID.- Since:
- 9.00.030.006
-
subFlowId
protected int subFlowIdId of the active sub-workflow. Only valid for TYPE_CALL_SUB_WORKFLOW.- Since:
- 9.00.030.022
-
retVal
Deprecated.Use #returnValueReturn value of an end node. Only valid for TYPE_END.- Since:
- 9.00.030.022
-
returnValue
Return value of a sub-workflow. The value defines the name of the successor node of the call-nodeWFNodeC.TYPE_CALL_SUB_WORKFLOW
that will be activated when the sub-workflow returns. If the sub-workflow returns a node name that does not exist in the main workflow, a new person node is inserted between the call-node and its successors. This new node is named as the return value and is assigned to the workflow owner.- Since:
- 9.99.009.003
-
labelTranslationKey
Translation-keyword forlabel
.- Since:
- 9.00.030.021
-
subTemplateId
protected int subTemplateIdID, GUID or name of the sub-workflow template.- Since:
- 9.99.009.004
-
prio
protected int prioNode priortiy: 0...high, 1...medium, 2...low. Only valid for person nodes, type==WFNodeC.TYPE_PERSONNODE
. The user assigned to the person node can change this value by conn.ix().forwardWorkflowNode():WFEditNode editNode = conn.ix().beginForwardWorkflowNode(flowId, nodeId, null, LockC.NO); WFNode activeNode = editNode.getNode(); activeNode.setPrio(activeNode.getPrio()-1); // One level higher. ForwardWorkflowNodeInfo fwdInfo = new ForwardWorkflowNodeInfo(); fwdInfo.setNode(activeNode); conn.ix().forwardWorkflowNode(wfActive.getId(), activeNode.getId(), fwdInfo, LockC.NO);
- Since:
- 9.99.009.005
- See Also:
-
-
Constructor Details
-
WFNode
public WFNode() -
WFNode
-
-
Method Details
-
isAllowActivate
public boolean isAllowActivate() -
setAllowActivate
public void setAllowActivate(boolean allowActivate) -
getComment
-
setComment
-
getDelayDays
public int getDelayDays() -
setDelayDays
public void setDelayDays(int delayDays) -
getDepartment2
public int getDepartment2() -
setDepartment2
public void setDepartment2(int department2) -
getDesignDepartment
public int getDesignDepartment() -
setDesignDepartment
public void setDesignDepartment(int designDepartment) -
getEnterDateIso
-
setEnterDateIso
-
getExitDateIso
-
setExitDateIso
-
getFlags
public int getFlags() -
setFlags
public void setFlags(int flags) -
getId
public int getId() -
setId
public void setId(int id) -
getInUseDateIso
-
setInUseDateIso
-
getIsNext
public int getIsNext() -
setIsNext
public void setIsNext(int isNext) -
getMoveCyclePosX
public int getMoveCyclePosX() -
setMoveCyclePosX
public void setMoveCyclePosX(int moveCyclePosX) -
getName
-
setName
-
getNbOfDonesToExit
public int getNbOfDonesToExit() -
setNbOfDonesToExit
public void setNbOfDonesToExit(int nbOfDonesToExit) -
getOnEnter
-
setOnEnter
-
getOnExit
-
setOnExit
-
getOnEnterHandleRollback
-
setOnEnterHandleRollback
-
getOnExitHandleRollback
-
setOnExitHandleRollback
-
getPosX
public int getPosX() -
setPosX
public void setPosX(int posX) -
getPosY
public int getPosY() -
setPosY
public void setPosY(int posY) -
getTag
public int getTag() -
setTag
public void setTag(int tag) -
getTimeLimit
public int getTimeLimit() -
setTimeLimit
public void setTimeLimit(int timeLimit) -
getTimeLimitIso
-
setTimeLimitIso
-
getType
public int getType() -
setType
public void setType(int type) -
getUserId
public int getUserId() -
setUserId
public void setUserId(int userId) -
getUserName
-
setUserName
-
getUserTerminate
-
setUserTerminate
-
getYesNoCondition
-
setYesNoCondition
-
getDelayDateIso
-
setDelayDateIso
-
isOverTimeLimit
public boolean isOverTimeLimit() -
setOverTimeLimit
public void setOverTimeLimit(boolean overTimeLimit) -
getUserDelayDateIso
-
setUserDelayDateIso
-
getProcessOnServerId
-
setProcessOnServerId
-
getTimeLimitEscalations
-
setTimeLimitEscalations
-
getObjKeyNames
-
setObjKeyNames
-
getScriptNames
-
setScriptNames
-
getIconId
-
setIconId
-
getFormSpec
-
setFormSpec
-
getNameTranslationKey
-
setNameTranslationKey
-
getCommentTranslationKey
-
setCommentTranslationKey
-
getLabel
-
setLabel
-
getProperties
-
setProperties
-
getDepartmentGroup
public int getDepartmentGroup() -
setDepartmentGroup
public void setDepartmentGroup(int departmentGroup) -
getSubFlowId
public int getSubFlowId() -
setSubFlowId
public void setSubFlowId(int subFlowId) -
getRetVal
Deprecated.UsegetReturnValue()
.- Returns:
- reserved
-
setRetVal
Deprecated.- Parameters:
retVal
- reserved
-
getReturnValue
-
setReturnValue
-
getLabelTranslationKey
-
setLabelTranslationKey
-
toString
-
getSubTemplateId
public int getSubTemplateId() -
setSubTemplateId
public void setSubTemplateId(int n) -
getPrio
public int getPrio() -
setPrio
public void setPrio(int prio)
-