GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
OpenXPKI::Server::Workflow::Activity::WorkflowTest(3) User Contributed Perl Documentation OpenXPKI::Server::Workflow::Activity::WorkflowTest(3)

OpenXPKI::Server::Workflow::Activity::WorkflowTest;

Test Activity for Workflow Development

Retry 5 times with a 15 minute pause interval and terminate workflow with FAILURE state if the retries are exceeded.

  <action name="I18N_OPENXPKI_WF_ACTION_TEST_ACTIVITY"
     class="OpenXPKI::Server::Workflow::Activity::WorkflowTest"
     retry_count="5" retry_interval="+0000000015" autofail="yes">
  </action>

Retry Interval is a OpenXPKI::DateTime specification only relative dates are allowed.

The execution of this job can be controlled throgh a bunch of workflow params:

wokflow/action params

action
what should the action do? possible values: "pause", "crash" or "" (run normally)
cause
optional cause for pausing, will be passed as argument to $self->pause($msg)
reap_at
OpenXPKI relative interval, ie. "+0000000012". is checked in init phase and passed to $self->set_reap_at_interval($interval).
reap_at_dyn
OpenXPKI relative interval, ie. "+0000000012". is checked in execution phase and passed to $self->set_reap_at_interval($interval).
retry_interval
OpenXPKI relative interval, ie. "+0000000012". is checked in execution phase and passed to $self->set_reap_at_interval($interval).

after super::init, the param "reap_at" is evaluated. if given, $self->set_reap_at_interval() is called.

checks param "action": if action = "pause", $self->pause() will be called. if action = "crash", an exception I18N_OPENXPKI_SERVER_WORKFLOW_ACTIVITY_TEST_CRASHED is thrown.

hook method, will be called from OpenXPKI::Server::Workflow when activity is resumed after an exception. This implementation augments the wf context param "resume_was_called" for testing purposes (see /qatests/backend/paused_workflows)

hook method, will be called from OpenXPKI::Server::Workflow when activity is executed again after pause. This implementation augments the wf context param "wake_up_was_called" for testing purposes (see /qatests/backend/paused_workflows)
2022-05-14 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.