4 Replies Latest reply on Mar 26, 2014 11:17 AM by zpirate

    jbpm6 ftl Human Task

    zpirate

      Hi!

       

      We installed the jbpm6 and we use the jbpm-console and decided to go with the .ftl forms for Human Tasks, because we checked the Form Modeler, but it has only a few UI elements in the palette. Is it possible to create new custom UI elements in the Form Modeler?

       

      We created a demo project with the Form Modeler, our .FTL form has only two elements:

      "<div id="" style=""><label>Ftl demo task</label></div>".

      When we press the "Complete Task" button, nothing happens, but an error message appears in the firebug Console (see below). We have no clue what went wrong.

      Is .FTL form supported in the jbpm-console? Can we find an example of jbpm6 .FTL forms? Can we find any description on using .FTL forms in jbpm6? Or can we find any description of the new .form format?

       

      Thanks for your answers in advance!

       

      Fri Nov 22 09:31:57 GMT+100 2013 com.google.gwt.logging.client.LogConfiguration

      SEVERE: Exception caught: null

      1. com.google.gwt.event.shared.UmbrellaException: Exception caught: null

      at Unknown.d0(StackTraceCreator.java:174)

      at Unknown.Qf(StackTraceCreator.java:501)

      at Unknown.G$(RuntimeException.java:33)

      at Unknown.seb(UmbrellaException.java:71)

      at Unknown.veb(UmbrellaException.java:26)

      at Unknown.Pdb(UmbrellaException.java:90)

      at Unknown.gi(Widget.java:129)

      at Unknown.nA(DomEvent.java:116)

      at Unknown.ii(UIObject.java:557)

      at Unknown.ui(Widget.java:163)

      at Unknown.WAd(DOM.java:1307)

      at Unknown.anonymous(DOMImplStandard.java:171)

      at Unknown.y_(Impl.java:189)

      at Unknown.B_(Impl.java:242)

      at Unknown.anonymous(Impl.java:70)

      Caused by: java.lang.NumberFormatException: null

      at Unknown.d0(StackTraceCreator.java:174)

      at Unknown.Pf(StackTraceCreator.java:501)

      at Unknown.Tf(Exception.java:29)

      at Unknown.F$(RuntimeException.java:29)

      at Unknown.$3d(IllegalArgumentException.java:29)

      at Unknown.j5d(NumberFormatException.java:33)

      at Unknown.u2d(Number.java:243)

      at Unknown.VYj(FormDisplayPopupPresenter.java:393)

      at Unknown.anonymous(FormDisplayPopupPresenter.java:527)

      at Unknown.o$j(FormDisplayPopupPresenter.java:296)

      at Unknown.Bab(ClickEvent.java:55)

      at Unknown.Zdb(GwtEvent.java:76)

      at Unknown.Pdb(HandlerManager.java:127)

      at Unknown.gi(Widget.java:129)

      at Unknown.nA(DomEvent.java:116)

      at Unknown.ii(UIObject.java:557)

      at Unknown.ui(Widget.java:163)

      at Unknown.WAd(DOM.java:1307)

      at Unknown.anonymous(DOMImplStandard.java:171)

      at Unknown.y_(Impl.java:189)

      at Unknown.B_(Impl.java:242)

      at Unknown.anonymous(Impl.java:70)

        • 1. Re: jbpm6 ftl Human Task
          swiderski.maciej

          yes, ftl forms are supported in jbpm console. Whenever you create them yourself make sure that some hidden input fields are defined for process id and task id so the runtime can find the right instances to invoke. Here you can find default ftl forms used by jbpm when no others are defined.

           

          HTH

          • 2. Re: jbpm6 ftl Human Task
            zpirate

            Thank you very much! It works! (examples are excelent)

             

            I have some other questions:

            1. Which is the best practice to use own javascript in ftl forms? I'd like to load and use my *.js files.

            2. I'd like to use own form validation. We have complex forms. Can I write a js function, which is called before form complete, automatically?

             

            Thanks your answers in advance! (if you have examples, that would be very useful)

             

            kz

            • 3. Re: jbpm6 ftl Human Task
              wguo

              Hi Zoltan ,

               

                  Do you have any progress on your two questions , we also have the same problem :

                   the best practice to use own javascript in ftl forms

              • 4. Re: jbpm6 ftl Human Task
                zpirate

                Hi,

                 

                No progress. We decided to use Vaadin for Human Task UI. So we don't use ftl.

                 

                Zoltan