Java Example
<Transition FromActivity="CheckMasterCatalog" ToActivity="GetMasterCatalogId"> <Description>If mastercatalog is not equal to 'ITEM_VENDOR_NUMBER', then go to 'GetMasterCatalogId' activity</Description> <Rule> <Parameter name="MasterCatalog" direction="in" type="string" eval="xpath" source="/Message/Body/Document/OriginalDocument/Message/Body/Document/ BusinessDocument/CatalogAction/CatalogActionHeader/MasterCatalog/Re visionID/BaseName/text()">inDoc</Parameter> <Parameter name="result" type="boolean" direction="out" /> <Condition format="java"> <![CDATA[ com.tibco.ConditionEval.addMsgInfoToEventToCheckMasterCatalog(MasterCatalog); </Condition> </Rule> </Transition>
Java Example where data source upload needs to be done first.
<Transition FromActivity="AddMsgInfoToEvent" ToActivity="ProcessExportArchive"> <Description lang="en">If ExportArchive param is present, this is special import case for Data Transfer/Roundtrip which is handled by ProcessExportArchive activity</Description> <Rule> <Parameter direction="in" name="exportArchive" type="string" eval="xpath" source="/Message/Body/Document/BusinessDocument/CatalogAction/CatalogActionHeader/MasterCatalog/Extension[@name='ExportArchive']/Value/text()">inDoc</Parameter> <Parameter name="result" type="boolean" direction="out"/> <Condition format="java"><![CDATA[ com.tibco.mdm.workflow.engine.transition.WfSharedConditionTransition.isNotNull(exportArchive); ]]></Condition> </Rule> </Transition> <!--Data source upload needs to be done first --> <Transition FromActivity="AddMsgInfoToEvent" ToActivity="UploadDataSource"/> <Transition FromActivity="ProcessExportArchive" ToActivity="UploadDataSource"/>
Copyright © Cloud Software Group, Inc. All rights reserved.