Oracle Waveset 8.1.1 Deployment Reference

Calling FormUtil Methods without Knowing the Context

You can use select without understanding which variable specifies the Lighthouse Context. This approach facilitates re-use of the method invocation.

<select>
   <ref>:display.session</ref>
   <ref>context</ref>
</select>

In a form, you would specify the context with <ref>:display.session</ref>. However, the same FormUtil call in a workflow would instead use <ref>context</ref>.

A third method for fetching context involves invoking a getLighthouseContext method using WF_CONTEXT object. Below we wrap all three techniques in a rule, which can be used later.


<rule name=’Get Context’>
<select>
   <ref>:display.session</ref>
   <ref>context</ref>
   <invoke name=’getLighthouseContext’>
      <ref>WF_CONTEXT</ref>
   </invoke>
</select>
</rule>