Customizing Workflow for a New Repository

To customize the workflow for a new repository, perform the following steps:

Important:
  • NEWREPO (newly created repository).
  • The corresponding data source and input map should be created in the TIBCO Product and Service Catalog Metadata Studio Project and successfully deployed into the TIBCO Product and Service Catalog enterprise.
  • Follow the naming convention of Repository name, its data source name, and the input map name as seen in the CatalogDataMap.csv file present in the $AC_HOME/samples/ directory. Ensure that there are corresponding CSV file as per the created datasource to import.

Procedure

  1. Open the $AC_HOME/samples/ CatalogDataMap.csv file.
  2. After the line RULEPARAMETER,RULEPARAMETER_DATA_IMAP,RULEPARAMETER_DATA_DS,RULEPARAMETER_DATA.csv add the new line for every new repository NEWREPO,<NEWREPO>_DATA_IMAP,<NEWREPO>_DATA_DS,NEWREPO_DATA.csv.
    Note:
    • New lines in CatalogDataMap.csv must be added as per the heading.
    • Adhere to the <NEWREPO>_DATA_IMAP format for the input map when creating it in TIBCO MDM Studio.
    • Adhere to the <NEWREPO>_DATA_DS format for the data source when creating it in TIBCO MDM Studio.
    • Adhere to the <NEWREPO>_DATA.csv file name format for the CSV file to be imported.
  3. For just a partial import perform the following steps:
    1. Locate the $MQ_COMMON_DIR/<ENTERPRISE_NAME>/workflow/ directory and edit the wfin26partialimportfcdatav1.xml file.
    2. Succeeding the activity SpawnSubWorkFlow_PROJECTTAG, add another activity for the new repository as shown in the following example:
      <Activity Name="SpawnSubWorkFlow_NEWREPO">
      <Action>InitiateSubFlow</Action>
      <Description>Spawn the subworkflow for NEWREPO repository</Description>
      <Execution>SYNCHR</Execution>
      <Parameter direction="in" type="string" eval="constant" name="eventState">SPAWNWORKFLOW</Parameter>
      <Parameter direction="in" type="string" eval="constant" name="ProcessID">standard/workflow/wfin26partialimportfcdatasubflowv1</Parameter>
      <Parameter direction="in" type="document" eval="variable" name="InDocument">inDoc</Parameter>
      <Parameter name="RepositoryName" direction="in" eval="constant" type="string">NEWREPO</Parameter>
      <Parameter direction="in" eval="variable" type="string" name="ProjectTagNames">ProjectTagName</Parameter>
      <Parameter direction="in" eval="variable" type="string" name="FolderPath">TempFilePath</Parameter>
      <Parameter name="OutDocument" direction="out" eval="variable" type="document">inDoc</Parameter>
      </Activity>
    3. Comment out the existing activity transition for SpawnSubWorkFlow_PROJECTTAG by adding "<!--" at the beginning of the transition and adding "-->" at the end of the transition. Example for the transition to be commented out is as follows:
      <Transition FromActivity="SpawnSubWorkFlow_PROJECTTAG" ToActivity="PrepareForImport"/>
    4. Add the activity transitions as shown in the following example:
      <Transition FromActivity="SpawnSubWorkFlow_PROJECTTAG" ToActivity="SpawnSubWorkFlow_NEWREPO "/>
      <Transition FromActivity="SpawnSubWorkFlow_NEWREPO" ToActivity="PrepareForImport "/>