-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: scheduled starting and stopping of message processing
- Loading branch information
1 parent
b88bf2b
commit 23ab683
Showing
4 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
17 changes: 17 additions & 0 deletions
17
docusaurus/docs/openforms2bpel/configuration/scheduled-start-stop-receiver.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
sidebar_position: 19 | ||
--- | ||
|
||
# Scheduled Start/Stop WorkflowSelector Receiver | ||
The processing of messages can be started or stopped by a scheduled job. This is done by starting/stopping the receiver of the **_WorkflowSelector_**. This still allows for messages to be delivered from the **_Notificaties API_**, but they won't be processed until the receiver is turned back on. The scheduled starting/stopping of the receiver can be useful if backend services are not available during a set period of time, for example during a backup cycle. By default this scheduled job is not enabled. | ||
|
||
### Configure Schedule | ||
The scheduled start- and stop job for the **_WorkflowSelector_** can be configured with: | ||
```ini | ||
openforms2bpel.workflows.workflow-selector.start-receiver.cron-expression=0 * 5 * * ? | ||
openforms2bpel.workflows.workflow-selector.start-receiver.enabled=false | ||
openforms2bpel.workflows.workflow-selector.stop-receiver.cron-expression=0 * 0 * * ? | ||
openforms2bpel.workflows.workflow-selector.stop-receiver.enabled=false | ||
``` | ||
|
||
For information on the Quartz Cron syntax and list of examples, visit the [Quartz Scheduler Cron Trigger Documentation](https://www.quartz-scheduler.org/documentation/quartz-2.3.0/tutorials/crontrigger.html). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
src/main/configurations/bpel/Configuration_StartStopReceiverScheduler.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<Module xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../FrankConfig.xsd"> | ||
<Scheduler> | ||
<IbisActionJob | ||
name="StopReceiver_WorkflowSelector_Job" | ||
active="${openforms2bpel.workflows.workflow-selector.stop-receiver.enabled}" | ||
action="STOPADAPTER" | ||
adapterName="WorkflowSelector" | ||
configurationName="bpel" | ||
cronExpression="${openforms2bpel.workflows.workflow-selector.stop-receiver.cron-expression}" | ||
> | ||
<Locker objectId="StopWorkflowSelectorReceiverScheduler-Lock" retention="1" /> | ||
</IbisActionJob> | ||
<IbisActionJob | ||
name="StartReceiver_WorkflowSelector_Job" | ||
active="${openforms2bpel.workflows.workflow-selector.start-receiver.enabled}" | ||
action="STARTADAPTER" | ||
adapterName="WorkflowSelector" | ||
configurationName="bpel" | ||
cronExpression="${openforms2bpel.workflows.workflow-selector.start-receiver.cron-expression}" | ||
> | ||
<Locker objectId="StartWorkflowSelectorReceiverScheduler-Lock" retention="1" /> | ||
</IbisActionJob> | ||
</Scheduler> | ||
</Module> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters