gerardharvey / proto-athena

0 stars 1 forks source link

When removing a Workflow Definitions, all workflowNames mentioning that definition should be updated #12

Open maoo opened 10 years ago

maoo commented 10 years ago

Create an AOP Listener that is notified everytime a Workflow undeployment occurs.

To take inspiration from existing code, check class NodeRefPropertyMethodInterceptor.java and its configuration in node-services-context.xml

<bean id="nodeRefPropertyInterceptor" class="org.alfresco.repo.node.NodeRefPropertyMethodInterceptor" init-method="init">
  <property name="nodeService">
    <ref bean="mlAwareNodeService" />
  </property>
  <property name="dictionaryService">
    <ref bean="dictionaryService" />
  </property>
</bean>

How to implement the logic: