4 Replies Latest reply: Aug 1, 2012 10:31 AM by Sudipto Desmukh RSS

    how to integrate BPM with ADF

    952004
      Hi ,


      We are working for a BPM and ADF project.Presently ADF screens have been designed in BPM work space itself and data controls are given to the fields.
      Its a registration page which has many fields.Will this work fine ??

      In the registration page ,there is a field Date of Birth which has three input boxes one for month,day and year.
      Calendar functionality shouldnt be used since its the requirement from Customer,when the user enters all the fields ,it should check for Age and if the Applicant is less than 18 years a Pop up should come telling that,He/She cant apply since it doesnt meet the age criteria.

      To bring this pop up what should we do and how do we calculate the age and Bring the pop Up .

      Can any one explain?Any sample code please do share.





      Thanks,


      Aravvind S
        • 1. Re: how to integrate BPM with ADF
          Frank Nimphius-Oracle
          Hi,

          1. add af:popup
          2. add af:dialog into af:popup
          3. use af:popup binding property to point to managed bean (create an entry in managed bean using the Edit dialog on the context menu of the binding property)
          4. On form submit (e.g. in an action listener on the submit button) read the three fields in Java and build the Date
          5. check the age
          6. If age is not 18 call
          RichPopup.PopupHints hints = new RichPopup.PopupHints();
          //reference the instance of RichPopup you created through binding property
          <get method of your popup>.show(hints)
          This opens the dialog in the center of the screen.

          Frank

          Ps.: In my reply I assume you know enough Java to understand how to build the date from the three input components and how to check if this matches the criteria
          • 2. Re: how to integrate BPM with ADF
            Sudipto Desmukh
            Welcome - Always mentioned your Jdev version before asking a question . Also read this before you post - https://forums.oracle.com/forums/ann.jspa?annID=56
            Presently ADF screens have been designed in BPM work space itself and data controls are given to the fields.
            Its a registration page which has many fields.Will this work fine ??
            Do you mean that you are using ADF Screens generated as default forms from a Human Task having Payloads as DataControls .. this should work fine as thats the standard way.
            • 3. Re: how to integrate BPM with ADF
              952004
              Hi ,

              Thanks for the valuable suggestions.

              Without Buttons we have to check the age and display a pop up.The DAte of Birth field is 3 input boxes.Once the user enters the three field boxes ,it should check and come up with a pop up .With action listener its fine ,but value change listener will work out here??

              Actually its not auto generated forms.We are designing ADF Screens in the BPM workspace.In the task flow itself we created jspx pages and started designing ADF Custom Screens.


              We are using jdev version 11.1.1.6 version






              Thanks,

              Aravind S

              Edited by: 949001 on 01-Aug-2012 05:27
              • 4. Re: how to integrate BPM with ADF
                Sudipto Desmukh
                Yes you can use a VC Listener too ... just bind the 3 inputTexts to a Managed Bean and in each of the VC Listeners check if all the values have been populated (since fields can be filled in any order)
                and execute your logic based on which you need to show the popup.