[jbpm-users] how to add a self-defined property for[usertask]node in eclipse-plugin editor.

jiacc@gillion.com.cn jiacc at gillion.com.cn
Wed Aug 17 11:27:46 EDT 2011


default regsiter code like this,
ksession.getWorkItemManager().registerWorkItemHandler("Human Task", new WSHumanTaskHandler());

if i define new node like this 
<task id="_6" tns:taskName="my Task" >

 which param i should use to instead of  "Human Task" ?use my Task?



发件人: Burkhard Vogel 
发送时间: 2011-08-17  23:15:01 
收件人: jiacc at gillion.com.cn 
抄送: jbpm-users at lists.jboss.org 
主题: Re: [jbpm-users] how to add a self-defined property for[usertask]node in eclipse-plugin editor. 
 
jcc,
yes, you'd have to extend the WSHumanTaskHandler and use it as a "common" somain specific node - you'd have to copy the definition for the WSHumanTaskHandler as well into your domain specific xml.You could hack the default human task node implementation - but I'd recommend agaist it...

Regards,
Burkhard

On 17/08/2011 10:02, jiacc at gillion.com.cn wrote: 
hi,

i want extends existing [user task ] node , i need the existing function in [user task ] node  , and add self-defined property in eclipse-plugin designer.

how to do .

can i use [task] node , and then register the workitemhandler as the same as WSHumanTaskHandler?



发件人: Burkhard Vogel 
发送时间: 2011-08-17  22:53:11 
收件人: jiacc at gillion.com.cn 
抄送: jbpm-users at lists.jboss.org 
主题: Re: [jbpm-users] how to add a self-defined property for [usertask]node in eclipse-plugin editor. 
jcc,
you can't change the xml definition at will - user tasks should be named "task" and you have to add the workitemhandler to the workitemmanager:
ksession.getWorkItemManager().registerWorkItemHandler("UserTask", new UserTaskHandler(ksession));

Regards,
Burkhard

On 17/08/2011 09:48, jiacc at gillion.com.cn wrote: 
hi,
i have a new problem ,
 
These follwing two codes have the same meaning?
 
<task id="_7" name="User Task" tns:taskName="User Task" > 
 
vs
 
<userTask id="_7" name="User Task2" >




发件人: jiacc at gillion.com.cn 
发送时间: 2011-08-17  22:43:15 
收件人: Burkhard Vogel; jbpm-users at lists.jboss.org 
抄送: 
主题: Re: Re: [jbpm-users] how to add a self-defined property for [user task]node in eclipse-plugin editor. 
Hi:
    thank u very much for your help.
 
If as you approach , then generate the my.bpmn include 
 
"<task id="_7" name="User Task" tns:taskName="User Task" >....",
 
but I need to generate this code: 
"<usertask id="_7" name="User Task" ...."
 
How to deal with this problem?
 
  Regards,
jcc




发件人: Burkhard Vogel 
发送时间: 2011-08-17  22:27:56 
收件人: jbpm-users at lists.jboss.org 
抄送: 
主题: Re: [jbpm-users] how to add a self-defined property for [user task]node in eclipse-plugin editor. 
Hi,
define it as this in your user node definition xml:
import org.drools.process.core.datatype.impl.type.StringDataType;
[
  [
    "name" : "UserTask",
    "parameters" : [
      "ActorId" : new StringDataType(),
      "ActorId2" : new StringDataType()
    ],
    "displayName" : "User Task",
    "icon" : "icons/usertask.gif"
  ]
]
Regards,
Burkhard

On 17/08/2011 04:35, jiacc at gillion.com.cn wrote: 
hi , 

I want to add a self-defined property for [user task] node in eclipse-plugin editor , such as actorId , actorId2.

 JBPM5.1 .

thank u .
-- 
This email was Anti Virus checked by Astaro Security Gateway. MODINTER S.A.


-- 

Saludos cordiales,

Burkhard Vogel
Lead Strategic Development



Centre of Sales & Support • Quito, Ecuador 
Leonidas Plaza N24-318 y Baquerizo Moreno
Edificio Plaza 246
Phone:   +593 2 2237393 ext 7300 
Mobile:   +593 9 5771800
E-mail:    burkhard.vogel at modinter.com.ec 
www.modinter.com.ec 
The information in this e-mail and any attachments is confidential and is intended for the addressee only and may contain confidential, proprietary or legally privileged information. If you are not the intended recipient, please delete this message and any attachments and advise the sender by return e-mail. Unless otherwise stated, any pricing or deliver information given in this message is indicative only, is subject to change and to formal communication.
FISA GROUP and each or any of its operating companies reserve the right to monitor all e-mail communication through its networks. 


-- 

Saludos cordiales,

Burkhard Vogel
Lead Strategic Development



Centre of Sales & Support • Quito, Ecuador 
Leonidas Plaza N24-318 y Baquerizo Moreno
Edificio Plaza 246
Phone:   +593 2 2237393 ext 7300 
Mobile:   +593 9 5771800
E-mail:    burkhard.vogel at modinter.com.ec 
www.modinter.com.ec 
The information in this e-mail and any attachments is confidential and is intended for the addressee only and may contain confidential, proprietary or legally privileged information. If you are not the intended recipient, please delete this message and any attachments and advise the sender by return e-mail. Unless otherwise stated, any pricing or deliver information given in this message is indicative only, is subject to change and to formal communication.
FISA GROUP and each or any of its operating companies reserve the right to monitor all e-mail communication through its networks. 


-- 

Saludos cordiales,

Burkhard Vogel
Lead Strategic Development



Centre of Sales & Support • Quito, Ecuador 
Leonidas Plaza N24-318 y Baquerizo Moreno
Edificio Plaza 246
Phone:   +593 2 2237393 ext 7300 
Mobile:   +593 9 5771800
E-mail:    burkhard.vogel at modinter.com.ec 
www.modinter.com.ec 
The information in this e-mail and any attachments is confidential and is intended for the addressee only and may contain confidential, proprietary or legally privileged information. If you are not the intended recipient, please delete this message and any attachments and advise the sender by return e-mail. Unless otherwise stated, any pricing or deliver information given in this message is indicative only, is subject to change and to formal communication.
FISA GROUP and each or any of its operating companies reserve the right to monitor all e-mail communication through its networks. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jbpm-users/attachments/20110817/3990907b/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/octet-stream
Size: 2118 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/jbpm-users/attachments/20110817/3990907b/attachment-0001.obj 


More information about the jbpm-users mailing list