Using Workflow Parameters and Variables to Write to a Dynamic Target File

Using Workflow Parameters and Variables to Write to a Dynamic Target File

Step 8. Create the Parameter File

Step 8. Create the Parameter File

The infacmd wfs ListWorkflowParams command lists the parameters used in a deployed workflow and the default value for each parameter. Use the output of this command to create a parameter file.
The command lists all parameters in a project top-level element. You can edit the parameter default values in the project element to define the values for a workflow in the project that is deployed to any application. Or, you can copy the project element into an application element to define the values for a specific workflow in a specific deployed application.
  1. Run the infacmd wfs ListWorkflowParams command to list all parameters used in a deployed workflow and the default value for each parameter.
    For example, the following command lists the parameters in the workflow wf_DynamicTargetFile in the file "MyOutputFile.xml":
    infacmd wfs ListWorkflowParams -dn MyDomain -sn MyDataIntSvs -un MyUser -pd MyPassword -a MyApplication -wf wf_DynamicTargetFile -o MyOutputFile.xml
    The Data Integration Service lists all parameters in the workflow with their default values in a project top-level element. For example, the following sample parameter file lists the default value for the DepartmentName parameter:
    <?xml version="1.0" encoding="UTF-8"?><root xmlns="http://www.informatica.com/Parameterization/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema"> <!-- <application name="MyApplication"> <workflow name="wf_DynamicTargetFile"> <!- -Specify deployed application specific parameters here.- -> </workflow> </application> --> <project name="MyProject"> <workflow name="wf_DynamicTargetFile"> <parameter name="DepartmentName">Insurance_</parameter> </workflow> </project> </root>
  2. Edit the XML file and replace the parameter default value with the department name that you want to use when you run the workflow.
    If you want to define the values for the workflow in a specific application, copy the project top-level element into an application top-level element.
  3. Save the XML file.

0 COMMENTS

We’d like to hear from you!