GrailsFlow

Handling kill process event directly in process

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.0
  • Fix Version/s: 1.0.12
  • Component/s: None
  • Labels:
    None
  • Request Controller:
    Please Select
  • External Supervisor:
    Please select
  • Executing Programmer:
    Please select
  • Ext Project Id:
    JCGFW-01

Description

It's not possible to implement own handle for 'kill process' event. Process execution just stopped, but we can not rollback changes/finish process correctly.

Possible solutions:

  • add new transaction 'processKilled' that will appear in case of process has been killed, in this case we can define this transaction in each step and control this situation
  • add node 'processKilled' to each process, this node will be run before killing process.

Solution:
Handler for killed processes has been created (PostKillProcessHandler interface, DefaultPostKillProcessHandler - SSM specific implementaiton).

Now if application has bean with id "postKillProcessHandler":

<bean id="postKillProcessHandler" class="com.jcatalog.ssm.grailsflow.DefaultPostKillProcessHandler">
    <property name="lockManagerService" ref="lockManagerService"/>
    <property name="sessionFactory" ref="sessionFactory"/>
</bean>

then it will be called from GrailsFlow after process killing.

Activity

Hide
Antonicheva, July added a comment - 26/Oct/11 3:08 PM

Done. Comment about configuring bean was added in GrailsflowCoreGrailsPlugin.groovy file.

Show
Antonicheva, July added a comment - 26/Oct/11 3:08 PM Done. Comment about configuring bean was added in GrailsflowCoreGrailsPlugin.groovy file.

People

Vote (0)
Watch (0)

Dates

  • Created:
    12/Sep/11 11:19 AM
    Updated:
    24/Feb/12 8:37 AM
    Resolved:
    24/Feb/12 8:37 AM