2 Replies Latest reply: May 17, 2013 1:35 AM by Mohanraj Nataraj RSS

    Get Child Taskflow's view IDs

    Mohanraj  Nataraj
      Hi All,

      Jdev version : 11.1.1.6

      Use case:
      I have taskflow (TaskFlow 1) , I am calling another taskflow (TaskFlow 2) through taskflow call.
      From TaskFlow 1 , I want get view IDs in TaskFlow2 or the default activity id of the Task Flow 2.

      Code:
      Task Flow 1 (base)
      <task-flow-definition id="base-task-flow">
      <task-flow-call id="task-flow-definition">
      <task-flow-reference>
      <document>/WEB-INF/ external-task-flow.xml </document>
      <id> task-flow 2 -definition </id>
      </task-flow-reference>
      </task-flow-call>
      <view id="SearchProposal">
      <page>/pages/uw/SearchProposal.jsff</page>
      </view>
      <view id="ViewProposal">
      <page>/pages/uw/ViewProposal.jsff</page>
      </view>
      <control-flow-rule id="__2">
      <from-activity-id id="__3">SearchProposal</from-activity-id>
      <control-flow-case id="__4">
      <from-outcome id="__6">viewProposal</from-outcome>
      <to-activity-id id="__5">ViewProposal</to-activity-id>
      </control-flow-case>
      </control-flow-rule>
      <control-flow-rule id="__7">
      <from-activity-id id="__8">ViewProposal</from-activity-id>
      <control-flow-case id="__10">
      <from-outcome id="__11">editProposal</from-outcome>
      <to-activity-id id="__9"> task-flow 2 -definition </to-activity-id>
      </control-flow-case>
      </control-flow-rule>
      <use-page-fragments/>
      </task-flow-definition>

      Task Flow 2:
      <task-flow-definition id="task-flow 2 -definition">
      <default-activity id="__1"> MarketingDetails </default-activity>
      <view id=" *MarketingDetails* ">
      <page>/pages/uw/MarketingDetails.jsff</page>
      </view>
      </task-flow-definition>

      From ViewProposal.jsff, how can I get(programmatically) the task-flow 2 -definition viewIDs or the default activity ID.
      I tried with MetadataService. I can get the current taskflow definition details. But I couldn't get the external taskflow definitions.

      Please suggest how to achieve it also provide some documents to follow.

      Please revert if more clarification needed.

      Thanks
      - Mohanraj