Community articleRetrieving the Function Call Manager
Added by IBM contributorIBM on July 26, 2013
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

The Function Call Manager is used to handle services specific to function calls, such as handling requests for a particular function. The Function Call Manager is represented by a FunctionCallManager object.
  1. Declare the Function Call Manager before requesting it from the IFX Manager.
    • In the following example, the FciFunctionCall constructor declares the Function Call Manager with the type FunctionCallManager.
    •       public FciFunctionCall(IFX IFXMan) throws UWIException
            {
               FunctionCallManager theFCM;
            }

  2. Use the IFSSingleton method getFunctionCallManager in the function call constructor to request a FunctionCallManager object from the IFX Manager.
    • The getFunctionCallManager call requests the Function Call Manager from the IFX Manager.
    • The return value of the getFunctionCallManager method is a generic object, and must be typecast to the object type you have requested. In this case, the object returned from getFunctionCallManager is typecast to FunctionCallManager.
    • In the following example the FciFunctionCall constructor requests the Function Call Manager (FCM Notice that before the Function Call Manager is returned, it is explicitly cast to the type FunctionCallManager.
    •    public FciFunctionCall(IFX IFXMan) throws UWIException
            {
            FunctionCallManager theFCM;
               if ((theFCM = IFSSingleton.getFunctionCallManager()) == null) 
                  throw new UWIException("Needed Function Call Manager");
            }