本站首页    管理页面    写新日志    退出

The Neurotic Fishbowl

[/*Java*/]jBpm中的泳道
nybon 发表于 2005/4/3 21:09:23

2 posible transitions for 2 different roles Hello, i'm reading the docs but i can't see if, being in 1 state and having 2 possible actions (transitions to make), it's possible to be performed by 2 different roles. For example :  <state name="evaluating"> <transition name="approve" to="fork"/> <transition name="disapprove" to="done"/> </state> The approve transition can be made by role 1 (swimlane) and the disapprove transition can be made only by another role(swimlane).  Can i do that?... Or how can i represent that scenario..  Thanks a lot. You are right, it can't. A state is acted on by one role. (think in states, not in activities!!!!)  You can ofcourse write your own gui and have additional roles there and only allow one actor to submit one transition and vise versa, but that is not what you (and I) want.   Can you explain a little What do you want to achieve? The first to act wins? IF I know a little more detail, I can maybe give you a good answer.  Ronald  jbpm does not do authentication. this should be done by the environment. (e.g. the webapplication environment or the ejb environment).  in one of the previous versions, we had the most generic organisation module possible. turned out not te be generic enough. so we eliminated any dependency from within the jbpm code. Your organisation model should only be used from within your AssignmentHandler implementations. jBPM only stores references to actors as text so they can represent people, groups or systems in your context.  regards, tom. using jbpmQuery http://sourceforge.net/forum/message.php?msg_id=2884416 from one state to two different swimlane ? Hi, I have a use case: - a user can submit a request - a user can cancel a request - a manager can approve/reject a request  So I think I need to define two swimlanes, one for requester, and one for manager. However, I donot know how to transition from 'evaluating' state to two states which are for different swimlanes: <!-- START-STATE --> <start-state name="request"  swimlane="requester"> <transition to="evaluating"/> </start-state>  <!-- NODES --> <state name="evaluating"> <assignment swimlane="owner" /> <transition name="approve" to="done"/> <transition name="reject" to="done"/> </state>  How do I define the 'cancel' state for the requester ? thanks li xin  How to assign swimlanes properly? Thanks for your replies...   I used the following state definition:  <state name="life"> <assignment swimlane="human" authentication="verify" /> <transition to="death" /> </state>   The test code:  try { executionService.endOfState(token.getId()); fail("Task is closed by unauthorized user."); } catch (ExecutionException e) { e.printStackTrace(); }  Now the code passed the test.  As much as I understand from the documentation and your replies, authentication is not part of the primary responsibilities of Jbpm. But we should use getTaskList method in order to assign the tasks to the correct user.  openExecutionService(actorId) method mislead me. I thought that executionService is bound to the actorId. Thus it is responsible of authentication of the endOfState method. However the actorId parameter is passed to the executionService for logging purposes. Thus it is optional.  Thank you very much for your help...  Best regards,  Mert Nuhoglu  

阅读全文(2419) | 回复(0) | 编辑 | 精华

 



发表评论:
昵称:
密码:
主页:
标题:
验证码:  (不区分大小写,请仔细填写,输错需重写评论内容!)

 
 



The Neurotic Fishbowl

.: 公告

This blog focuses on:

Semantic Web && Java Technology


Bloginess

«August 2025»
12
3456789
10111213141516
17181920212223
24252627282930
31

.: 我的分类(专题)

首页(171)
/*SemanticWeb*/(34)
/*Java*/(74)
/*FreeComments*/(59)
/*Agent*/(4)


In the Bowl

.: 最新日志

The End
使用Google Trends进行选型
怎样才能称为一次新的版本发行?
如何防止RSS信息过载
使用Excel作为用户接口
如何有效地报告Bug
sourceforge再次被封
趣文两篇
编写Firefox扩展
Jetspeed心得随笔


.: 最新回复

回复:Google API与yahoo 
回复:JADE 3.3的bug
回复:JADE 3.3的bug
回复:JADE 3.3的bug
回复:JADE 3.3的bug
回复:Jbpm和Shark比较的feat
回复:JADE 3.3的bug
回复:JADE 3.3的bug
回复:[转]批判性地看待一种可行的表示技
回复:JIRA破解


The Fishkeeper
blog名称:SW Portal
日志总数:171
评论数量:219
留言数量:8
访问次数:1043638
建立时间:2004年10月30日



Text Me

.: 留言板

签写新留言

路过
路过
页脚问题
RE:请问一下你的主页的下面部分是怎么关
请问一下你的主页的下面部分是怎么关闭的?
我是做Mobile Agent的
Gmail
不错
不错啊小倪同学


Other Fish in the Sea

.: 链接





站点首页 | 联系我们 | 博客注册 | 博客登陆

Sponsored By W3CHINA
W3CHINA Blog 0.8 Processed in 0.046 second(s), page refreshed 144763556 times.
《全国人大常委会关于维护互联网安全的决定》  《计算机信息网络国际联网安全保护管理办法》
苏ICP备05006046号