How to deploy an IBM Filenet P8 Subscription?

瘦欲@ 提交于 2019-12-01 20:43:51

There are Subscriptions that deal with workflows, and ones that do not. I am assuming that you are referring to non-workflow subscriptions (subscriptions that deal with Event Actions).

Subscriptions are used to subscribe a class (i.e. Document) to an Event Action. An Event Action is where you actually reference the fully qualified class name implementing the Action. When you create a subscription, one of the steps allows you to also create an Event Action.

Event Actions can either refer to a java class, or can also refer to javascript.

In the case of referring to a java class, a Code Module is needed.

Code Module is a sub-class of Document. Code Modules are simply either class files or jar files as the Content Element of a Code Module object.

So you need to:

  1. create a class that implements "com.filenet.api.engine.EventActionHandler" (or you could also create a PreProcessor, but that doesn't have a subscription)
  2. Upload the class into a Code Module object
  3. Create an Event Action that references the Class that implements EventActionHandler inside your Code Module.
  4. Create a subscription that references your Event Action.

Some useful documentation:

  1. Change PreProcessors
  2. Events and Subscriptions
  3. A nice little plugin for eclipse that makes event actions easier to write and update
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!