Interface IFD2StatusProvider
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DefaultFD2StatusProvider
public interface IFD2StatusProvider extends Serializable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.alibaba.fastjson.JSONArray
createStatusJSON(long workflowVersionNumber)
com.alibaba.fastjson.JSONArray
createStatusList(long workflowVersionNumber)
-
-
-
Method Detail
-
createStatusList
com.alibaba.fastjson.JSONArray createStatusList(long workflowVersionNumber)
- Parameters:
workflowVersionNumber
- The version number of the workflow version containing the states. Ignored when the project uses the old workflow.- Returns:
- A JSON array of all states for the current project. Contains
JSONObject
s with the following key-value pairs:- id: The ID (number) of the state.
- name: The given name (string) of the state.
-
createStatusJSON
com.alibaba.fastjson.JSONArray createStatusJSON(long workflowVersionNumber)
- Parameters:
workflowVersionNumber
- The version number of the workflow version containing the states. Ignored when the project uses the old workflow.- Returns:
- A JSON array containing information regarding the conditions available to show form elements depending on
the current state of the form. Contains
JSONObject
s with the following key-value pairs:- id: ID of the state-based condition, eg.
-1
or[!]-1
orstatus-effab301-1856816569
or[!]status-effab301-1856816569
- name: A textual and localized description of the state-based condition, eg.
not in state Received
orform has not status
.
- id: ID of the state-based condition, eg.
-
-