jbpm 7 form task rendering

273 views
Skip to first unread message

Alberto

unread,
Oct 10, 2017, 9:26:39 AM10/10/17
to jBPM Development
Hi all,
I need help with form task. I'm looking for a way to render forms inside my web application.

With this resource I'm able to retrieve form by task.
http://{{host}}:8080/kie-server/services/rest/server/containers/evaluation/forms/tasks/4?filter=true

This is the output:
<form id="1635016860">
    <property name="subject" value=""/>
    <property name="name" value="PerformanceEvaluation-taskform"/>
    <property name="displayMode" value="default"/>
    <property name="status" value="0"/>
    <field id="822358072" name="822358072" position="0" type="InputTextArea">
        <property name="fieldRequired" value="false"/>
        <property name="groupWithPrevious" value="false"/>
        <property name="height" value=""/>
        <property name="labelCSSClass" value=""/>
        <property name="labelCSSStyle" value=""/>
....

I don't understand how convert this xml to html form and where this data has to be posted to save variables to related process.

I have finded jbpm-forms-rest-integration.js but I think working only since 6.4 version, the endpoint used in js are no longer available in 7.3.

Thanks!

Alberto


Maciej Swiderski

unread,
Oct 11, 2017, 5:50:26 AM10/11/17
to Alberto, jBPM Development
in general, this gives you exact structure that the form was built in workbench. So you have certain information that you can use it render your own UI. Though the xml might be bit verbose, try with JSON instead - set htp headers:
Content-Type
Accept
to 
application/json

Maciej
--
You received this message because you are subscribed to the Google Groups "jBPM Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbpm-developme...@googlegroups.com.
To post to this group, send email to jbpm-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jbpm-development/626fb4f9-d93e-46c1-b129-9889f9a15cd4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

eric yang

unread,
Aug 30, 2018, 5:52:52 AM8/30/18
to jBPM Development
Hi Maciej, 

Don't know how to render the UI totally. Do you have any sample code for reference?? I have lots of complicated task forms in work flow process. It takes much time to do the form UI rendering. If KIE server could have a form URL like business central in jBPM 6.4. Things would become much easier. Thank you

在 2017年10月11日星期三 UTC+8下午5:50:26,Maciej Swiderski写道:

Maciej Swiderski

unread,
Sep 6, 2018, 3:06:41 AM9/6/18
to eric yang, jBPM Development

On 30 Aug 2018, at 11:52, eric yang <ericya...@gmail.com> wrote:

Hi Maciej, 

Don't know how to render the UI totally. Do you have any sample code for reference??
Here is a sample project/application that utilise this feature https://github.com/ibek/vacation-planner

I have lots of complicated task forms in work flow process. It takes much time to do the form UI rendering. If KIE server could have a form URL like business central in jBPM 6.4. Things would become much easier.
This has been discussed to allow kie server to render the form and it’s on roadmap but not yet scheduled 

Maciej
Reply all
Reply to author
Forward
0 new messages