Wizard Steps
Introduction
General Overview
A Wizard Step is a customizable unit that performs a single task or process within a Wizard. Each step is distinct, defined by a unique ID, and can be reused across various wizards. The functionality of a Wizard Step is determined by its specific Step Type, which dictates the parameters and logic needed for that step. Additionally, each step tracks its progress through a Status field and can be marked as either required (must be completed before moving to the next step) or optional.
Supported Step Types
FORM Step
- Purpose: Facilitates the creation or updating of metadata for a publication through a dynamic form.
- Configuration: Uses Form Fields as step parameters. If a parameter is not defined, its ID is used as the Form Field ID.
- Behavior:
- If the publication is a Template, a new publication is duplicated.
- It's allowed to execute a process after duplicating a publication.
- If it's not a template, the current publication's data is updated.
PROCESS Step
- Purpose: Executes a
Camunda processon the active publication. - Features:
- Tracks and visualizes the process state.
- Allows file downloads for processes marked as Download.
- Provides options to stop or terminate active processes.
- Shows preview images for completed instances, if configured.
- Limitations: Only the main process is supported; subprocesses are excluded.
- Customization: Allows users to select from multiple configured processes.
TABLE_SELECTION Step
- Purpose: Displays custom data in a table format, enabling users to interact with the data by selecting rows.
- Configuration: Requires Table Data for step parameters.
PLANNING_TREE Step
- Purpose: Displays the planning structure of a publication. The top-level nodes represent the publication’s documents.
- Features:
- Supports two tab configurations: Static and Metadata.
- Uses Entity Columns for configuration.
CUSTOM_DOCUMENTS Step
- Purpose: Allows customization of Document Selection in the planning data.
- Features:
- Supports metadata editing.
- Can execute a Camunda process in the background after metadata updates (Save & Refresh).
PRODUCTS_ASSIGNMENT Step
- Purpose: Allows selecting the planning for the first document of the publication.
- Features:
- Supports drag/drop to add/remove/sort the planning.
- Supports 2 entity custom tags:
HIDE_IN_PLANNING: Element and all children are hidden from being shown during the planning content.DISABLE_IN_PLANNING: Element can’t be selected for planning but will be returned by the backend, the frontend will disable the selection. Children and content entities are visible.
Configuration
- All
Wizard Stepsconfiguration is maintained in the ISON configuration.
ISON Configuration Details
General Configuration Structure
<wizardSteps>
<wizardStep id="wizard_step_1">
<label>wizard_step_1_label</label>
<description>wizard_step_1_desc</description>
<type>[STEP_TYPE]</type>
<status>wizard_step_1_status</status>
<required>true</required>
<autoSave>true</autoSave>
<blockOnRunning>true</blockOnRunning>
<showDescription>true</showDescription>
<parameters>
<parameter id="parameter_id" key="parameter_key">parameter_value</parameter>
</parameters>
</wizardStep>
</wizardSteps>
Key Elements & Attributes
<wizardSteps>
- A wrapper element for multiple step configurations.
<wizardStep>
-
Represents a single step.
-
Attributes:
- id: Unique ID for the Wizard Step. Must match the ID used in the wizard.
-
Elements:
<label>: The step label, which supports language-dependent translation.<description>: The step description, which supports language-dependent translation and HTML content.<type>: The step type, e.g., FORM, PROCESS, etc.<status>: The status of the step, indicating its progress.<required>: Defines whether the step is mandatory. Defaults tofalseif not provided.<autoSave>: Define whether the step is autoSave. Defaults tofalseif not provided.<blockOnRunning>: Determine whether other steps should be blocked while this step is running. Defaults tofalseif not provided.<showSDescription>: Decide whether the step description should be displayed if it exists. Leaving it empty will apply the behavior defined in the wizard configurationshowStepSDescription.<parameters>: Contains the step parameters.<parameter>: Individual parameter for the step.- Attributes:
- id: Unique ID for the parameter.
- key: Defines the purpose or type of the parameter.
- Attributes:
<updateMetadataRecursive>: Decide whether the publication metadata updating should be applied for the sub-folders and document recursively. Leaving it empty will apply the behavior defined in the wizard configurationupdateMetadataRecursive.
Configuration by Step Type
FORM Step
<wizardSteps>
<wizardStep id="form_step">
<label>form_step_label</label>
<type>FORM</type>
<status>form_status</status>
<parameters>
<parameter id="form_field_1" key="form_field" />
<parameter id="form_field_2" key="form_field" />
<parameter id="form_field_3" key="form_field" />
<parameter id="form_field_4" key="form_field" />
<parameter id="form_field_5" key="form_field" />
<parameter id="duplicate_post_process">[DUPLICATE_POST_PROCESS_DEF_KEY]</parameter>
</parameters>
</wizardStep>
</wizardSteps>
<formFields>
<formField id="form_field_1">
...
</formField>
<formField id="form_field_2">
...
</formField>
<formField id="form_field_3">
...
</formField>
<formField id="form_field_4">
...
</formField>
<formField id="form_field_5">
...
</formField>
</formFields>
- Parameters
- Use
key="form_field"to define the form fields shown in the dynamic form. - Use
id="duplicate_post_process"to define the process should be started after publication is duplicated. - Each parameter
idshould map to a corresponding Form Field.
- Use
PROCESS Step
<wizardSteps>
<wizardStep id="process_step">
<label>process_step_label</label>
<type>PROCESS</type>
<status>process_status</status>
<parameters>
<parameter key="process_def_key" id="process_def_key_1">[PROCESS_DEF_KEY_1]</parameter>
<parameter key="process_def_key" id="process_def_key_2">[PROCESS_DEF_KEY_2]</parameter>
<parameter id="export">true</parameter>
<parameter id="preview">true</parameter>
<parameter id="preview_path">[PREVIEW_IMAGES_PATH]</parameter>
<parameter id="execute_label">execute_label</parameter>
<parameter id="retry_label">retry_label</parameter>
<parameter id="autorun">true</parameter>
<parameter id="show_completed_tasks">false</parameter>
<parameter id="stoppable">false</parameter>
</parameters>
</wizardStep>
</wizardSteps>
- Parameters
- key=
process_def_key: Specifies the Camunda process definition key. - id=
export: Enables or disables theDownloadfeature. Default value istrueif not configured. - id=
preview: Enables or disables thePreviewfeature. Default value isfalseif not configured. - id=
preview_path: Defines the path for obtaining preview images. This parameter is only effective ifpreviewis set totrue. - id=
execute_label: Defines the label for theExecutebutton on the UI. Supports language-dependent translation. Default value isExecute(English) if not configured. - id=
retry_label: Defines the label for theRetrybutton on the UI. Supports language-dependent translation. Default value isRetry(English) if not configured. id=retry_icon: Specifies the icon for theRetrybutton on the UI, currently, we only support 4 icons:add|download|sync|setting. The Process Type icon will be used if not configured. - id=
autorun: Enables or disables theAutorunfeature. Effective only if only one process definition key is configured. Default value isfalseif not configured. - id=
show_completed_tasks: Enables or disables theCompleted TasksUI section. Default value istrueif not configured. - id=
stoppable: Enables or disables the feature to stop/terminate the active instance. Default value istrueif not configured.
- key=
TABLE_SELECTION Step
<wizardSteps>
<wizardStep id="table_selection_step">
<type>TABLE_SELECTION</type>
<label>table_selection_step_label</label>
<status>table_selection_status</status>
<parameters>
<parameter id="table_id">table_1</parameter>
</parameters>
</wizardStep>
</wizardSteps>
<tables>
<table id="table_1">
...
</table>
</tables>
- Parameters
- id=
table_id: References the ID of theTable Datato be displayed.
- id=
PLANNING_TREE Step
<wizardSteps>
<wizardStep id="planning_tree">
<type>PLANNING_TREE</type>
<label>planning_tree_step_label</label>
<status>planning_tree_status</status>
<parameters>
<parameter key="entity_column" id="static_columns">static_columns</parameter>
<parameter key="entity_column" id="metadata_columns">metadata_columns</parameter>
</parameters>
</wizardStep>
</wizardSteps>
<entityColumns>
<entityColumn type="static" id="static_columns">
...
</entityColumn>
<entityColumn type="metadata" id="metadata_columns">
...
</entityColumn>
</entityColumns>
- Parameters
- id=
entity_column: Specifies static and metadata columns to configure the tree.
- id=
CUSTOM_DOCUMENTS Step
<wizardSteps>
<wizardStep id="custom_documents_tree">
<type>CUSTOM_DOCUMENTS</type>
<label>custom_documents_step_label</label>
<status>custom_documents_status</status>
<parameters>
<parameter id="content_metadata">[CONTENT_METADATA_ENTITY]</parameter>
<parameter id="process_def_key">[CUSTOM_DOCUMENTS_PROCESS_DEF_KEY]</parameter>
</parameters>
</wizardStep>
</wizardSteps>
- Parameters
- id=
content_metadata: Defines the entity to edit. - id=
process_def_key: Enables the Save & Refresh feature via Camunda process.
- id=
PRODUCTS_ASSIGNMENT Step
<wizardSteps>
<wizardStep id="products_assignment">
<type>PRODUCTS_ASSIGNMENT</type>
<label>products_assignment_step_label</label>
<status>products_assignment_status</status>
</wizardStep>
</wizardSteps>