将新工作流程添加到 Alfresco 共享中

发布于 2024-11-06 14:39:00 字数 375 浏览 4 评论 0原文

我是 Alfresco/Activiti 的新手。

我们公司正在使用 Skelta BPM.NET(与我们自行开发的 RMS 集成),现在我们想了解一下其他 BPM 软件。

最近几天,我发现了如何使用 Eclipse 创建新的工作流程并将它们导入到 Activiti 的独立安装中。

现在我想将此工作流程发布到 Alfresco 共享中。有什么简单的方法可以做到这一点吗?我在谷歌上搜索了一整天,但没有找到任何有用的东西。

还有一个关于安装的问题: 是否可以将 Activiti 及其所有 Web 应用程序安装在运行 alfresco 的同一个 tomcat 上? Apache Ant 只能构建独立安装。那么这两个应用程序可以合并吗?

谢谢你的信息,安泽

I'm new to Alfresco/Activiti.

Our company is using Skelta BPM.NET (in integration with our self developed RMS) and now we would like to take a look into other BPM software.

I last days I found our how to create new workflow using Eclipse and Import them into standalone installation of Activiti.

Now I would like to publish this workflow into Alfresco share. Is there any easy way to do that? I was searching whole day on Google but didn't find anything useful.

And another question about installation:
Is it possible to install Activiti with all it's webapps on the same tomcat, that alfresco is running on? That Apache Ant can build only standalone installation. So can this two application be merged?

Thanks for your info, Anze

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

凉墨 2024-11-13 14:39:00

如果您将 BPMN 2.0 流程定义 XML 放置在 Alfresco 类路径中的某个位置,则可以使用 Alfresco 的工作流控制台来部署该定义。

例如,我总是将工作流程放在 WEB-INF/classes/alfresco/extension/workflows/someFolder 下,其中 someFolder 是我正在使用的每个流程定义的唯一文件夹。

工作流控制台位于 http://localhost:8080/alfresco/faces/jsp/admin/workflow -console.jsp。假设您使用的是 3.4.e(显示 Activiti 集成的预览版),您可以使用以下命令通过工作流控制台部署流程:

    deploy activiti /alfresco/extension/workflows/activiti/activitiHelloWorld.activiti

您可以通过键入 help 查看其他有用的工作流控制台命令。

或者,正如 Gagravarr 所建议的,您可以在 Alfresco 启动时使用 Spring 来部署您的工作流程。 Spring 配置文件的名称必须以“-context.xml”结尾。我通常将其放在 WEB-INF/classes/alfresco/extension 中。

    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

    <beans>

  <bean id="someco.workflowBootstrap" parent="workflowDeployer">
    <property name="workflowDefinitions">
      <list>
        <props>
          <prop key="engineId">activiti</prop>
          <prop key="location">alfresco/extension/workflows/activiti/activitiHelloWorld.bpmn20.xml</prop>
          <prop key="mimetype">text/xml</prop>
          <prop key="redeploy">false</prop>         
        </props>
      </list>
    </property>
    <property name="models">
      <list>
        <value>alfresco/extension/model/scWorkflowModel.xml</value>
      </list>
    </property>
    <property name="labels">
      <list>
        <value>alfresco.extension.messages.scWorkflow</value>
      </list>
    </property>
  </bean>
    </beans>

如果您想要一些简单工作流程的工作示例,并为 jBPM 和 Activiti 实现相同的工作流程以便于比较,请查看此博客文章:http://ecmarchitect.com/archives/2011/04/27/1357

杰夫

If you place your BPMN 2.0 process definition XML somewhere in the Alfresco classpath, you can use Alfresco's workflow console to deploy the definition.

For example, I always place my workflows under WEB-INF/classes/alfresco/extension/workflows/someFolder where someFolder is a unique folder for each process definition I am using.

The workflow console is in http://localhost:8080/alfresco/faces/jsp/admin/workflow-console.jsp. Assuming you are using 3.4.e, which is a preview release showing Activiti integration, you can deploy a process through the workflow console with this command:

    deploy activiti /alfresco/extension/workflows/activiti/activitiHelloWorld.activiti

You can see other helpful workflow console commands by typing help.

Alternatively, as Gagravarr suggests, you can use Spring to deploy your workflow when Alfresco starts up. The Spring config file must have a name ending with "-context.xml". I usually place mine in WEB-INF/classes/alfresco/extension.

    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

    <beans>

  <bean id="someco.workflowBootstrap" parent="workflowDeployer">
    <property name="workflowDefinitions">
      <list>
        <props>
          <prop key="engineId">activiti</prop>
          <prop key="location">alfresco/extension/workflows/activiti/activitiHelloWorld.bpmn20.xml</prop>
          <prop key="mimetype">text/xml</prop>
          <prop key="redeploy">false</prop>         
        </props>
      </list>
    </property>
    <property name="models">
      <list>
        <value>alfresco/extension/model/scWorkflowModel.xml</value>
      </list>
    </property>
    <property name="labels">
      <list>
        <value>alfresco.extension.messages.scWorkflow</value>
      </list>
    </property>
  </bean>
    </beans>

If you'd like working examples of some simple workflows, with the same workflows implemented for both jBPM and Activiti for easy comparison, take a look at this blog post: http://ecmarchitect.com/archives/2011/04/27/1357

Jeff

失而复得 2024-11-13 14:39:00

对于问题的第二部分:

如果您想将 Alfresco 与 Activiti 一起使用,那么您应该尝试 3.4.e 版本(或最近的夜间版本)。 3.4.e 内置了 Activiti,因此您不需要进行任何 Web 应用程序的合并。这一切都已经为你准备好了。

对于第一部分,只要您使用 3.4.e(或更高版本的 nightly build),那么您应该能够以与之前部署到 JBMP 相同的方式部署到 Activiti。 Workflow With Activiti wiki 页面也应该可以帮助您解决此问题,这个 wiki 也是如此。

For the second part of your question:

If you want to use Alfresco with Activiti, then you should try the 3.4.e release (or a recently nightly build). 3.4.e has Activiti build in, so you don't need to do any merging of webapps. It's all already there for you.

For the first part, as long as you're using 3.4.e (or a later nightly build), then you ought to be able to deploy to Activiti in much the same way that you would previously deploy to JBMP. The Workflow With Activiti wiki page ought to help you with this too, as might this wiki too.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文