Petals BC Quartz

Unable to deploy 2 jobs as service consumers of the same service provider invoking different operations

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.7.0
  • Fix Version/s: 1.7.1
  • Component/s: None
  • Security Level: Public
  • Description:
    Hide

    The Quartz job name is computed from interface name, service name and endpoint name.

    So, potential problem can occurs if we want to create jobs to call different operations of a same service provider with a named endpoint: one job name identifying two jobs

    <jbi:consumes interface-name="mvt:Mouvement" service-name="mvt:MouvementService" endpoint-name="edpMouvement">
        <petalsCDK:operation>mvt:desactiver</petalsCDK:operation>
        ...
        <quartz:cron-expression>${mouvement.desactivation.cron}</quartz:cron-expression>
        ...
    </jbi:consumes>
    
    <jbi:consumes interface-name="mvt:Mouvement" service-name="mvt:MouvementService" endpoint-name="edpMouvement">
        <petalsCDK:operation>mvt:suspend</petalsCDK:operation>
        ...
        <quartz:cron-expression>${mouvement.suspend.cron}</quartz:cron-expression>
        ...
    </jbi:consumes>

    So please add the operation name to compute the QUartz job name

    Show
    The Quartz job name is computed from interface name, service name and endpoint name. So, potential problem can occurs if we want to create jobs to call different operations of a same service provider with a named endpoint: one job name identifying two jobs
    <jbi:consumes interface-name="mvt:Mouvement" service-name="mvt:MouvementService" endpoint-name="edpMouvement">
        <petalsCDK:operation>mvt:desactiver</petalsCDK:operation>
        ...
        <quartz:cron-expression>${mouvement.desactivation.cron}</quartz:cron-expression>
        ...
    </jbi:consumes>
    
    <jbi:consumes interface-name="mvt:Mouvement" service-name="mvt:MouvementService" endpoint-name="edpMouvement">
        <petalsCDK:operation>mvt:suspend</petalsCDK:operation>
        ...
        <quartz:cron-expression>${mouvement.suspend.cron}</quartz:cron-expression>
        ...
    </jbi:consumes>
    So please add the operation name to compute the QUartz job name
  • Environment:
    -

Activity

Christophe DENEUX made changes - Fri, 24 Jun 2022 - 12:13:29 +0200
Field Original Value New Value
Status New [ 10000 ] Open [ 10002 ]
Priority Major [ 3 ]
Christophe DENEUX made changes - Fri, 24 Jun 2022 - 12:13:30 +0200
Status Open [ 10002 ] In Progress [ 10003 ]
Christophe DENEUX made changes - Fri, 24 Jun 2022 - 12:37:38 +0200
Status In Progress [ 10003 ] Resolved [ 10004 ]
Fix Version/s 1.7.1 [ 11050 ]
Resolution Fixed [ 1 ]
Christophe DENEUX made changes - Fri, 24 Jun 2022 - 12:37:59 +0200
Status Resolved [ 10004 ] Open [ 10002 ]
Resolution Fixed [ 1 ]
Christophe DENEUX made changes - Fri, 24 Jun 2022 - 12:38:00 +0200
Status Open [ 10002 ] In Progress [ 10003 ]
Christophe DENEUX made changes - Fri, 24 Jun 2022 - 12:44:56 +0200
Status In Progress [ 10003 ] Resolved [ 10004 ]
Resolution Fixed [ 1 ]

People

Dates

  • Created:
    Fri, 24 Jun 2022 - 12:10:35 +0200
    Updated:
    Fri, 24 Jun 2022 - 12:44:56 +0200
    Resolved:
    Fri, 24 Jun 2022 - 12:44:56 +0200