关于JBPM3.1自定义表单变量类型的疑问

icesky_2007 2007-06-14
我在网上看到这样的写法
Radio Button radio:name:option1,option2,…* name = the caption next to the radio buttons option1,option2,…* = a comma-delimited list of options that represent the different radio button options
Date date:name name = the caption next to the date selector object
我在自己的processdefinition.xml文件中加入下列代码
<task name="写请假单" swimlane="requester">
         <controller>
         <variable name="用户名"></variable>
            <variable name="请假天数" access="read,write,required"></variable>       
            <variable name="radio:主管是否请假:0,1" access="write" mapped-name="主管是否请假">
</variable>
         </controller>
      </task>

为什么发布的页面上显示的"主管是否请假"还是个文本框啊,怎么样才能实现让页面上显示为RADIO呢?想在通过配置processdefinition.xml文件实现发布的页面表单里显示不同类型的变量. 求助,谢谢帮助.
实习牧师 2007-06-14
同样的问题……up
难道要去扩展源代码?
wf_7758520 2007-06-14
<variable name="radio:主管是否请假:0,1" access="write" mapped-name="主管是否请假">
这里要自己去解析name,根据name里的radio去生成表单控件,jbpm不会帮你做这事
gsccnu 2007-06-15
是不是要写在xhtml里就可以解析了呢?
Global site tag (gtag.js) - Google Analytics