Registry Operations
Conten ts
Registry Operations
1.1 Activities
1.1.1 Import From Registry
1.1.2 Write To Registry
1.1.3 Import From Remote Registry
1.1.4 Write To Remote Registry
1.2 Workflow
1.3 Parameters
1.3.1 General Guidelines
1.3.2 Write To Registry
1.3.3 Write To Remote Registry
1.3.4 Import From Registry
1.3.5 Import From Remote Registry
1.4 On Execution Workflow
Activities
Import From Registry
This activity imports data from Windows Registry.
Write To Registry
This activity writes data to Windows Registry.
Import From Remote Registry
This activity imports data from a Remote Server Windows Registry.
Write To Remote Registry
This activity writes data to a Remote Server Windows Registry.
Workflow
Workflow name: RegistryOperations_workflow
Workflow description:
Activities are the building blocks of WF , they are a unit of work in WF. Activities can be composed together into larger Activities. When an Activity is used as a top-level entry point, it is called a "Workflow".
In WF4, the root activity is called „Sequence". This activity is added by default in WF Designer panel when a new workflow is created. All activities that are placed inside of a sequence are called child activities.
Parameters
General Guidelines
Variables and Arguments
In general terms of parameters in WF4, there are two main concepts: Variables and Arguments. The definitions for each are that Variables are used to store data within a workflow and Arguments are used to passing data in/out of a workflow. The concept of „binding" parameters has been replaced with the usage of variables and arguments.
Variables are to be used in a workflow whenever the need to store data is limited to the current workflow and the output/input of the workflow is not used anywhere else (for example in Admin Suite).
Arguments are to be used whenever the input parameters of an activity are given by the user using for instance a web-based application, (for example when running a workflow in Admin Portal) and if the output of an activity is to be returned and used outside of DesignStudio application . (for example Admin Portal)
All parameters that have an Expression editor in Activity Properties panel can be used for value storage and passing, through variables and arguments.
Example: Collection From String activity
Defined IN arguments, with default value to be filled in by the user when running the workflow:
Defined variables to store the output of the Collection From String activity:
Parameters with different editors, like Folder editors or ComboBox cannot be bound to variables nor arguments.
Activity Properties
In general terms of activities properties, there are two main concepts: „Stop On Error" and „Enabled".
The concept of „Stop on error" and „Enabled"mechanisms are defined for runtime purposes.
„Stop on error" Property
On runtime (nn. Start button), if the Stop on error property is set to Yes for an activity and an error or exception is thrown, the execution of the workflow stops on the activity that caused the error /exception to be thrown.
If set to No, the error message is displayed in Tracking Data panel, but the execution of the workflow continues.
„Enabled" Property
On runtime, if the Enabled property is set to Yes for an activity,the activity is executed.
If set to No, the activity will not be executed on runtime.
WF Designer panel view:
Tracking Data panel view:
Activities Parameters
Write To Registry
This activity has 5 input parameters. Path, Value Data and Value Name are given by the user via IN arguments defined in the Parameters area in WF Designer Panel:
The Root and Value Type parameters are comboboxes so the value is chosen by the user from the drop down list displayed when clicked on the editor.
Write To Remote Registry
This activity has 6 input parameters. Path, Remote Server , Value Data and Value Name are given by the user via IN arguments defined in the Parameters area in WF Designer Panel:
The Root and Value Type parameters are comboboxes so the value is chosen by the user from the drop down list displayed when clicked on the editor.
Import From Registry
This activity has three input parameters. The Path and Value Name parameters are given by the user via IN arguments defined in the Parameters area from WF Designer Panel:
The Root parameter is a combobox so the value is chosen by the user from the drop down list displayed when clicked on the editor.
The output returned by this activity is passed to the argument of direction OUT , defined in the Parameters area from WF Designer panel. Arguments of direction OUT are displayed in the Output section of Tracking Data panel.
Import From Remote Registry
This activity has four input parameters. The Path,Remote Server and Value Name parameters are given by the user via IN arguments defined in the Parameters area from WF Designer Panel:
The Root parameter is a combobox so the value is chosen by the user from the drop down list displayed when clicked on the editor.
The output returned by this activity is passed to the argument of direction OUT , defined in the Parameters area from WF Designer panel. Arguments of direction OUT are displayed in the Output section of Tracking Data panel.
On Execution Workflow
Execution Result: