[英]Alfresco 5.1.x community edition created process using activiti
我对alfresco不熟悉,我在流程中使用eclipse创建了alfresco activiti
进程,我在属性中使用了service task任务选项,任务类型提供了3种类型1 .java class
, 2.expression,
3.java delegates
哪种更好地使用外部调用工作流程中的应用程序。
Here is the different between JavaDelegate and Expression 这是JavaDelegate和Expression之间的区别
JavaDelegate are instantiated by Spring.This means a workflow can call custom classes that have full access to Alfresco Spring beans. JavaDelegate由Spring实例化,这意味着工作流可以调用对Alfresco Spring bean具有完全访问权限的自定义类。 It allows your workflow to make delegate calls that can manipulate content it can also add or remove content from the workflow package itself.You can also add your other complex buisness logic there. 它允许您的工作流进行可以处理内容的委托调用,还可以在工作流包本身中添加或删除内容。还可以在其中添加其他复杂的业务逻辑。 So, if you have complex implementation to do during process you should go for this. 因此,如果您在流程中要执行复杂的实现,则应该这样做。
Expressions: For doing small operations like updating status of document or updating one or two properties of content within workflow you need to consider this. 表达式:要执行小的操作,例如更新文档的状态或更新工作流中内容的一个或两个属性,您需要考虑这一点。 Because in expression you can use alfresco javascript to achieve all those things. 因为在表达式中您可以使用露天javascript来实现所有这些功能。
Hope this helps 希望这可以帮助
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.