[jira] [Commented] (OFBIZ-11607) Enhance Groovy and Simple Event Handler to support transaction timout

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-11607) Enhance Groovy and Simple Event Handler to support transaction timout

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-11607?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17093460#comment-17093460 ]

Pawan Verma commented on OFBIZ-11607:
-------------------------------------

Thanks, [~lodhiravi] and [~jleroux].

I found no example in the code base for this transaction timeout support. So thought to add an example in the ticket for future reference for our fellow developers:

*Java Event:*

<event type="java" path="org.apache.ofbiz.accounting.GlEvents" invoke="createReconcileAccount" transaction-timeout="6000"/>

*Groovy Event:*

<event type="groovy" path="component://manufacturing/groovyScripts/jobshopmgt/ShowProductionRun.groovy" transaction-timeout="6000"/>

*Simple Event:*

<event type="simple" path="component://manufacturing/minilang/techdata/RoutingSimpleEvents.xml" invoke="addRoutingTaskAssoc" transaction-timeout="6000"/>

> Enhance Groovy and Simple Event Handler to support transaction timout
> ---------------------------------------------------------------------
>
>                 Key: OFBIZ-11607
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11607
>             Project: OFBiz
>          Issue Type: Improvement
>    Affects Versions: Trunk
>            Reporter: Ravi Lodhi
>            Assignee: Jacques Le Roux
>            Priority: Minor
>             Fix For: Upcoming Branch
>
>
> When we call an event (java, groovy or simple), and if it takes a too long time we got a transaction timeout error. Support to set a non-default transaction-timeout for an event is already added in OFBIZ-8160.
> JavaEventHandler is already enhanced to honor that transaction timeout. This effort is to enhance GroovyEventHandler and SimpleEventHandler to consider the transaction timeout set via event tag of the controller entry if provided otherwise it will work with the default transaction timeout.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)