Example for SpawnWorkflow Activity

Workflow with preceding EvaluateRuleBase which generates the entries:

<Workflow Version="1.3" xmlns:cim="http://www.tibco.com/xpd/cimService1.0.0" xmlns:xpdExt="http://www.tibco.com/XPD/xpdExtension1.0.0" xmlns:xpdl2="http://www.wfmc.org/2004/XPDL2.0alpha" xmlns:exsl="http://exslt.org/common">
  <Owner>Standard</Owner>
  <Name>SpawnWorkflowExample</Name>
  <Activity Name="ApplySynchRuleBase">
    <Description lang="en">Lookup function.</Description>
    <Start/>
    <Action>EvaluateRuleBase</Action>
    <Parameter direction="in" name="Rulebase" type="string"     eval="constant">testEnt/rulebase/rbsynchtradingpartner.xml</Parameter>
    <Parameter direction="in" name="InDocument" type="document"     eval="variable">inDoc</Parameter>
    <!-- LogOption: A - AttributeLog, L - Execution Log, F - Log File-->
    <Parameter direction="in" name="LogOption" type="string"     eval="constant">F</Parameter>
    <!-- Number of FATAL errors (see Severity) -->
    <Parameter direction="out" name="Validationerrors" type="long"     eval="variable">fatalerrors</Parameter>
    <!-- Number of Warnings (see Severity) -->
    <Parameter direction="out" name="Validationerrors1" type="long"     eval="variable">warningerrors</Parameter>
    <Parameter direction="out" name="ProductKeyArray" type="arraylist"     eval="variable">SynchProductKeyArray</Parameter>
    <Parameter direction="out" name="SenderArray" type="arraylist"     eval="variable">SynchSenderArray</Parameter>
    <Parameter direction="out" name="ChannelArray" type="arraylist"     eval="variable">SynchChannelArray</Parameter>
    <Parameter direction="out" name="TradingPartnerArray" type="arraylist"     eval="variable">SynchTradingPartnerArray</Parameter>
  </Activity>
  <Activity Name="InitiateSynchProducts">
    <Action>SpawnWorkflow</Action>
    <Description lang="en">Start publish workflows.</Description>
    <Parameter direction="in" name="InDocument" type="document"     eval="variable">workDoc</Parameter>
    <Parameter direction="in" name="DocumentTemplate" type="string"     eval="constant">standard/template/tm26catwcatv1.xml</Parameter>
    <Parameter direction="in" name="RecordKey" type="arraylist"     eval="variable">SynchProductKeyArray</Parameter>
    <Parameter direction="in" name="SenderCredential" type="arraylist"     eval="variable">SynchSenderArray</Parameter>
    <Parameter direction="in" name="ChannelCredential" type="arraylist"     eval="variable">SynchChannelArray</Parameter>
    <Parameter direction="in" name="TradingPartnerCredential"     type="arraylist" eval="variable">SynchTradingPartnerArray</Parameter>
    <Parameter direction="in" eval="constant" name="Form"     type="string">standard/forms/fm26catpubtemplatev1.xml</Parameter>
    <Parameter direction="in" name="RelationshipName" type="string"     eval="constant">CONTAINS</Parameter>
    <Parameter direction="in" name="TransformRulebase" type="string"     eval="constant">testEnt/rulebase/rbworkflowtransform.xml</Parameter>
    <Parameter direction="in" name="OutputFormat" type="string"     eval="constant">MyOutputFormat</Parameter>
    <Parameter direction="in" name="RecordPerAsyncCall" type="long"     eval="constant">10</Parameter>
    <Parameter direction="in" name="AsynProcessIndicator" type="boolean"     eval="constant">true</Parameter>
  </Activity>
  <Transition FromActivity="ApplySynchRuleBase"   ToActivity="InitiateSynchProducts">
    <Description>Initiate Product synchronization by applying synchronization     rules</Description>
  </Transition>
</Workflow>