Class WorkflowExternalStateHelper
- java.lang.Object
- 
- de.xima.fc.workflow.designer.helper.WorkflowExternalStateHelper
 
- 
 public final class WorkflowExternalStateHelper extends Object Helper methods for creating and modifying theWorkflowExternalState, which is the FORMCYCLE specific state required by the flowchart on the client. The external state is part of the total state of the flowchart preact app.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
 
- 
- 
Constructor SummaryConstructors Constructor Description WorkflowExternalStateHelper()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidfullUpdate(WorkflowModelBean modelBean, IWorkflowProvider provider, Locale locale)Recreates the entire external state.static booleansync(WorkflowModelBean modelBean)Sends the updates external state to the client with the next AJAX update.static voidupdateClientCounters(WorkflowModelBean modelBean, IWorkflowProvider provider)Rereads the availableClientCounters.static voidupdateClientResources(WorkflowModelBean modelBean, IWorkflowProvider provider)Rereads the availableClientResources.static voidupdateCustomView(WorkflowModelBean modelBean)Recreates theCustomViewSettings.static voidupdateInboxes(WorkflowModelBean modelBean, IWorkflowProvider provider)Rereads the availableInboxes.static voidupdateProjectResources(WorkflowModelBean modelBean, IWorkflowProvider provider)Rereads the availableProjectResources.static voidupdateStates(WorkflowModelBean modelBean, IWorkflowProvider provider, Locale locale)Rereads the availableWorkflowStates.static voidupdateSubmitButtons(WorkflowModelBean modelBean, IWorkflowProvider provider)Rereads the available submit buttons.static voidupdateTemplatesHtml(WorkflowModelBean modelBean, IWorkflowProvider provider)static voidupdateTemplatesUrl(WorkflowModelBean modelBean, IWorkflowProvider provider)static voidupdateUserGroups(WorkflowModelBean modelBean, IWorkflowProvider provider)Rereads the availableUserGroups.static voidupdateUsers(WorkflowModelBean modelBean, IWorkflowProvider provider)Rereads the availableUsers.
 
- 
- 
- 
Method Detail- 
fullUpdatepublic static void fullUpdate(WorkflowModelBean modelBean, IWorkflowProvider provider, Locale locale) Recreates the entire external state. Usesync(WorkflowModelBean)to send them to the client with the next AJAX update.- Parameters:
- provider- Provider to query for data.
- modelBean- Current model bean with the data.
 
 - 
syncpublic static boolean sync(WorkflowModelBean modelBean) Sends the updates external state to the client with the next AJAX update.- Parameters:
- modelBean- Current model bean with the data.
- Returns:
- Whether the external state has changed since the latest updated.
 
 - 
updateClientResourcespublic static void updateClientResources(WorkflowModelBean modelBean, IWorkflowProvider provider) Rereads the availableClientResources. Usesync(WorkflowModelBean)to send them to the client with the next AJAX update.- Parameters:
- modelBean- Model bean with the current workflow server state.
- provider- Workflow provider with the context, used for reading the client resources.
 
 - 
updateClientCounterspublic static void updateClientCounters(WorkflowModelBean modelBean, IWorkflowProvider provider) Rereads the availableClientCounters. Usesync(WorkflowModelBean)to send them to the client with the next AJAX update.- Parameters:
- modelBean- Model bean with the current workflow server state.
- provider- Workflow provider with the context, used for reading the client resources.
 
 - 
updateCustomViewpublic static void updateCustomView(WorkflowModelBean modelBean) Recreates theCustomViewSettings. Usesync(WorkflowModelBean)to send them to the client with the next AJAX update.- Parameters:
- modelBean- Model bean with the current workflow server state.
 
 - 
updateInboxespublic static void updateInboxes(WorkflowModelBean modelBean, IWorkflowProvider provider) Rereads the availableInboxes. Usesync(WorkflowModelBean)to send them to the client with the next AJAX update.- Parameters:
- modelBean- Model bean with the current workflow server state.
- provider- Workflow provider with the context, used for reading the inboxes.
 
 - 
updateProjectResourcespublic static void updateProjectResources(WorkflowModelBean modelBean, IWorkflowProvider provider) Rereads the availableProjectResources. Usesync(WorkflowModelBean)to send them to the client with the next AJAX update.- Parameters:
- modelBean- Model bean with the current workflow server state.
- provider- Workflow provider with the context, used for reading the project resources.
 
 - 
updateStatespublic static void updateStates(WorkflowModelBean modelBean, IWorkflowProvider provider, Locale locale) Rereads the availableWorkflowStates. Usesync(WorkflowModelBean)to send them to the client with the next AJAX update.- Parameters:
- modelBean- Model bean with the current workflow server state.
- provider- Workflow provider with the context, used for reading the workflow states.
- locale- Locale for localizing the name and description of the states.
 
 - 
updateSubmitButtonspublic static void updateSubmitButtons(WorkflowModelBean modelBean, IWorkflowProvider provider) Rereads the available submit buttons. Usesync(WorkflowModelBean)to send them to the client with the next AJAX update.- Parameters:
- modelBean- Model bean with the current workflow server state.
- provider- Workflow provider with the context, used for reading the submit buttons.
 
 - 
updateTemplatesHtmlpublic static void updateTemplatesHtml(WorkflowModelBean modelBean, IWorkflowProvider provider) Rereads the availableTemplates oftypeETextbausteinKategorie.HTML. Usesync(WorkflowModelBean)to send them to the client with the next AJAX update.- Parameters:
- modelBean- Model bean with the current workflow server state.
- provider- Workflow provider with the context, used for reading the HTML templates.
 
 - 
updateTemplatesUrlpublic static void updateTemplatesUrl(WorkflowModelBean modelBean, IWorkflowProvider provider) Rereads the availableTemplates oftypeETextbausteinKategorie.HTML. Usesync(WorkflowModelBean)to send them to the client with the next AJAX update.- Parameters:
- modelBean- Model bean with the current workflow server state.
- provider- Workflow provider with the context, used for reading the URL templates.
 
 - 
updateUserGroupspublic static void updateUserGroups(WorkflowModelBean modelBean, IWorkflowProvider provider) Rereads the availableUserGroups. Usesync(WorkflowModelBean)to send them to the client with the next AJAX update.- Parameters:
- modelBean- Model bean with the current workflow server state.
- provider- Workflow provider with the context, used for reading the user groups.
 
 - 
updateUserspublic static void updateUsers(WorkflowModelBean modelBean, IWorkflowProvider provider) Rereads the availableUsers. Usesync(WorkflowModelBean)to send them to the client with the next AJAX update.- Parameters:
- modelBean- Model bean with the current workflow server state.
- provider- Workflow provider with the context, used for reading the users.
 
 
- 
 
-