Thought contextual event might be answer. but then contextual events can be neatly configured only at design time in jdev.
It seems, you wont be able to configure the subscriber at runtime.
Like, at runtime you drag a CP TF ( lets say this TF is a Subscriber ) then there is no way u can get hold of the CP TF's pageDefinition where generally you create a handleEvent method binding and any of the subscriber's configuration. any other thoughts ?
1 пользователь считает эту информацию полезной
I used many times Contextual Events in Oracle WebCenter Portal by setting the event mapping manually in the PageDefinitions of the Portal Pages.
- So make sure your Custom Task Flow fires a Contextual Event (Programmatically or Declaratively).
- Create a Data Control in you Portal Extension Project to handle Events and the method desired to catch whatever informaiton you need.
- Deploy your new code.
- Make a backup copy of your Page, PageDef code of your WebCenter Portal Page.
- Edit the PageDef ot your WebCenter Portal Page to make sure the Portal Page consumes the Contextual Event.
- Once you have this mechanism working, you can add any logic extra code you need to change scoped variables or page variables which are used in your CP Input Parameters.
- Make sure the Refresh condition of your Content Presenter is IfNeeded to be refreshed when the Input Parameter changes.
It is a bit "longer" than all in design time, but perfectly duable to do.
Let me try and will let u know.
If you need more detailed steps with some pseudo-code let me know.
sure Daniel. we haven't executed the steps yet.