Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
OpenXPKI::Server::WorkUserpContributedvPerlWDocumentaActivity::WorkflowTest(3)

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

Description
       Test Activity for Workflow Development

   Configuration
       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).

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

   execute
       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.

   resume
       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)

   wake_up
       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)

perl v5.24.1		 OpenXPKI::Server::Workflow::Activity::WorkflowTest(3)

Name | Description

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=OpenXPKI::Server::Workflow::Activity::WorkflowTest&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help