CLA2 with params

Mirjana's picture
CLA2 - 3 parameters and Output file usage
 
  • Command line Adapter – configuration:
 
<process name="default">
          <sequence>
                   <operation name="Command Line 2 Adapter">
                             <participant name="CommandLineAdapter2"/>
                             <output message="CmdLine2InputMessage">
                                      <assign to="." from="*"/>
                                      <assign to="cmdLine">/home/si/bin/TEST_cmdWithParams.sh $0 $1 $2 $Output</assign>
                                      <assign to="parm0">abc</assign>
                                      <assign to="parm1">def</assign>
                                      <assign to="parm2">ghi</assign>
                                      <assign to="useOutput">true</assign>
                                      <assign to="workingDir">/home/si/bin</assign>
                             </output>
                             <input message="inmsg">
                                      <assign to="." from="*"/>
                             </input>
                   </operation>
          </sequence>
</process>
 
  • Unix script:
 
#! /bin/ksh
 
echo $1 > $4
echo $2 >> $4
echo $3 >> $4
 
  • Output/PrimaryDocument result:
 
abc
def
ghi