Support > Repository > Function > Workflow
ja | en

We introduce 13 functions related to workflow.

FLOWSTATUS ("model name", model primary key item (character string type))

Returns the status of the workflow (application, approval, rejection, decision, cancellation by applicant) as a string.The second argument must be a string type.

FLOWSTATUS("leave", TOSTR(${appid}))

If the FLOWSTATUS function returns an empty character, it means not applying.

The above assumes that the primary key is an integer type and converts it to a character string with the "TOSTR" function. If the primary key is a character string type, you can specify the item name directly as shown below.
FLOWSTATUS("leave", ${appid})
This function can not be used in job control.
When specifying the item to which the FLOWSTATUS function is applied as a search condition, special setting is necessary.Detail is"Search in model workflow statePlease read.

WF_LASTEVENT ("model name", model primary key item (character string type))

Returns the last event of the workflow (new registration, application, approval, remand, hold, rejection, decision, cancellation (by the applicant)) as a string.The second argument must be a string type.

WF_LASTEVENT("leave", TOSTR(${appid}))
This function can not be used in job control.

WF_CURRENT_USERID ("model name", model primary key item (string type))

Returns the logon ID of the pending agent (current person who should take action) for the current node.The return type is a string type.

If newly registered workflow data but not applied, this value will be the logon ID that created the data.
Please make sure not to save items that use this function in the database.It is necessary to always display the latest value.

WF_CURRENT_USERID("leave", TOSTR(${appid}))
The above assumes that the primary key is an integer type and converts it to a character string with the "TOSTR" function. If the primary key is a character string type, you can specify the item name directly as shown below.
WF_CURRENT_USERID("leave", ${appid})
This function can not be used in job control.

WF_NEXT_USERID ("model name", model primary key item (character string type))

Returns the pending agent (next logon ID of the person who should trigger the approval action) on the next node.The return type is a string type.
You can specify the model name and the value of the primary key field of the model.

When applying for workflow data, this value will be the logon ID of the approver of the next node.(When Approver is Individual)
Please make sure not to save items that use this function in the database.It is necessary to always display the latest value.

WF_NEXT_USERID("leave", TOSTR(${appid}))
The above assumes that the primary key is an integer type and converts it to a character string with the "TOSTR" function. If the primary key is a character string type, you can specify the item name directly as shown below.
WF_NEXT_USERID("leave", ${appid})
This function can not be used in job control.

WF_NEXT_USERID_MAIL ("model name", "primary key name of model", "item name storing mail address")

It returns the value of the mail address storage item of the third argument from the model name of the first argument and the primary key name of the second argument name.The return value is a string type (mail address).

WF_NEXT_USERID_MAIL("juser", "userid", "mailaddress")
This function can not be used in job control.

WF_USERID()

Returns the pending agent (next logon ID of the person who should trigger the approval action) on the next node.The return type is a string type.
It is an argumentless version of the WF_NEXT_USERID () function.Returns the value of this data.
Please make sure not to save items that use this function in the database.It is necessary to always display the latest value.

WF_USERID()
This function can not be used in job control.

WF_CURRENT_GROUPID ("model name", model primary key item (string type))

Returns the group ID of the process pending agent (current person who should take the approval action) on the current node. The return value type is integer type. If the value does not exist, null is returned.
Please make sure not to save items that use this function in the database.It is necessary to always display the latest value.

WF_CURRENT_GROUPID("leave", TOSTR(${appid}))
The above assumes that the primary key is an integer type and converts it to a character string with the "TOSTR" function. If the primary key is a character string type, you can specify the item name directly as shown below.
WF_CURRENT_GROUPID("leave", ${appid})
This function can not be used in job control.

WF_NEXT_GROUPID ("model name", model primary key item (character string type))

Returns the group ID of the pending agent (next person who should take the approval action) on the next node. Return type isArray of integer typeis. If the value does not exist, null is returned.
You can specify the model name and the value of the primary key field of the model.
Please make sure not to save items that use this function in the database.It is necessary to always display the latest value.

WF_NEXT_GROUPID("leave", TOSTR(${appid}))
The above assumes that the primary key is an integer type and converts it to a character string with the "TOSTR" function. If the primary key is a character string type, you can specify the item name directly as shown below.
WF_NEXT_GROUPID("leave", ${appid})
This function can not be used in job control.
[Specification change] As of R7.10, the return value is an array of integer type so that this function returns multiple group IDs.When using it, please check "Use it as repetition" prepared in "Detail" tab of model item detail definition.

WF_NEXT_GROUPID_MAIL ("jgroup model name", "primary key name of jgroup model", "item name storing jgroup mail address")

It returns the value of the mail address storage item of the third argument from the model name of the first argument and the primary key name of the second argument name.The return value is a string type (mail address).If there is more than one, it will be a comma separated string.

WF_NEXT_GROUPID_MAIL("jgroup", "jgroupid", "jgroupmailaddress")
This function can not be used in job control.

WF_NEXT_MAIL ("juser model name", "juser model primary key name", "juser mail address stored item name", "jgroup model name", "jgroup model primary key name", "jgroup mail address Item name stored ")

The first argument to the third argument are for juser, and the fourth to sixth arguments are for jgroup.The return value is a string type (mail address).If there is more than one, it will be a comma separated string.

WF_NEXT_MAIL("juser", "userid", "mailaddress", "jgroup", "jgroupid", "jgroupmailaddress")
This function can not be used in job control.

WF_GROUPID()

Returns the group ID of the pending agent (next person who should take the approval action) on the next node.
It is an argumentless version of the WF_NEXT_GROUPID () function.Returns the value of this data.The return type is an integer type array. If the value does not exist, null is returned.
Please make sure not to save items that use this function in the database.It is necessary to always display the latest value.

WF_GROUPID()
This function can not be used in job control.
[Specification change] As of R7.10, the return value is an array of integer type so that this function returns multiple group IDs.When using it, please check "Use it as repetition" prepared in "Detail" tab of model item detail definition.

WF_IS_ADMITUSER()

For this data, it returns whether it is a person who holds workflow (process pending).

More specifically, when the user (logon account) belongs to the processing suspending person or processing suspension group ID of the data,true.Otherwisefalse.
Please make sure not to save items that use this function in the database.It is necessary to always display the latest value.

WF_IS_ADMITUSER()
This function can not be used in job control.

WF_LASTPROCESSDATE()

For this data, the date and time of the last process (approval, approval, etc.) for the workflow is returned.

Please make sure not to save items that use this function in the database.It is necessary to always display the latest value.
WF_LASTPROCESSDATE()
This function can not be used in job control.