Community articlesetActiveForComputationalSystem method
Added by IBM contributorIBM on May 2, 2012
Rate this article 1 starsRate this article 2 starsRate this article 3 starsRate this article 4 starsRate this article 5 stars

No abstract provided.


This method sets whether the computational system is active. When active, all computes in the form are evaluated on an on-going basis. When inactive, no computes are evaluated.
Note that turning the computational system on causes all computes in the form to be re-evaluated, which can be time consuming.


   public void setActiveForComputationalSystem ( 
      boolean activeFlag
   ) throws UWIException;


Table 1. Method parameters
activeFlagbooleanSet to true to activate the compute system or false to deactivate the compute system.


Nothing or throws a generic exception (UWIException) if an error occurs.


The following example reads a form into memory with the computational system turned off. The example then calls a processing method that adds a large amount of information to the form. Next, setActiveForComputationalSystem is called to turn the computational system on and evaluate all of the computes. Finally, the updated form is written to disk.
   private static void processForm() throws Exception
   XFDL theXFDL;
   FormNodeP theForm;
      /* Get the XFDL object */
      if ((theXFDL = IFSSingleton.getXFDL()) == null)
         throw new Exception("Could not find interface");
      /* Read the form into memory with the computes turned off */
      if ((theForm = theXFDL.readForm("input.xfd",
         XFDL.UFL_AUTOCOMPUTE_OFF)) == null)
         throw new Exception("Could not load form.");
      /* Call a method that adds information to the form from a database */
      /* Activate the computational system. This will re-evaluate all
         computes with the new information in the form. */
      /* Write the updated form to disk */
      theForm.writeForm("output.xfd", null, 0);

Parent topic:
FormNodeP class