RT notifier: parse templates without header correctly
[openxpki.git] / trunk / deployment / etc / templates / default / workflow_def_certificate_issuance.xml
blobc81799cf7a71daca0048c9c46881479ec6b33bfa
1 <workflow>
2 <type>I18N_OPENXPKI_WF_TYPE_CERTIFICATE_ISSUANCE</type>
3   <description>I18N_OPENXPKI_WF_DESC_CERTIFICATE_ISSUANCE</description>
4   <persister>OpenXPKI</persister>
5   <observer class="OpenXPKI::Server::Workflow::Observer::Debug"/>
7   <state name="INITIAL">
8     <action name="import"
9             resulting_state="WAITING_FOR_START">
10     </action>
11   </state>
13   <!-- this state is implicitly autostarted by the parent workflow -->
14   <state name="WAITING_FOR_START">
15     <action name="notify_parent_failure" 
16             resulting_state="FAILURE">
17       <condition name="!valid_csr_serial_present"/>
18     </action>
19     <action name="determine_issuing_ca"
20             resulting_state="ISSUING_CA_DETERMINED">
21       <condition name="ACL::start_certificate_issuance"/>
22       <condition name="valid_csr_serial_present"/>
23     </action>
24   </state>
26   <state name="ISSUING_CA_DETERMINED" autorun="yes">
27     <action name="do_nothing"
28             resulting_state="CA_KEY_NOT_USABLE">
29       <condition name="!ca_key_usable"/>
30     </action>
32     <action name="do_nothing2"
33             resulting_state="CA_KEY_USABLE">
34       <condition name="ca_key_usable"/>
35     </action>
36   </state>
38   <state name="PREPARED" autorun="yes">
39     <action name="issue_certificate" 
40             resulting_state="CERTIFICATE_ISSUED">
41     </action>
42   </state>
44   <state name="CA_KEY_USABLE" autorun="yes">
45     <action name="get_cert_profile"
46             resulting_state="PREPARED">
47     </action>
48   </state>
50   <state name="CA_KEY_NOT_USABLE">
51     <action name="continue_issuance" 
52             resulting_state="CA_KEY_USABLE">
53         <condition name="ca_key_usable"/>
54     </action>
55   </state>
57   <state name="CERTIFICATE_ISSUED" autorun="yes">
58     <action name="persist_certificate"
59             resulting_state="SPAWNING_CERTIFICATE_LDAP_PUBLISHING">
60     </action>
61   </state>
63   <state name="SPAWNING_CERTIFICATE_LDAP_PUBLISHING" autorun="yes">
64    <action name="I18N_OPENXPKI_WF_ACTION_FORK_CERTIFICATE_LDAP_PUBLISHING_INSTANCE"
65            resulting_state="WAITING_FOR_CHILD">
66         <condition name="use_ldap"/>
67       </action>
68       <action name="notify_parent_success"
69           resulting_state="SUCCESS">
70         <condition name="!use_ldap"/>
71       </action>
72   </state>
73                                                         
74   <state name="WAITING_FOR_CHILD">
75       <!-- = notify_parent_success -->
76    <action name="child_finished_successfully"
77                   resulting_state="NOTIFY_PARENT_SUCCESS">
78       <condition name="all_wf_children_instances_finished"/>
79    </action>
80       <!-- = notify_parent_failure -->
81    <action name="child_finished_failure"
82                   resulting_state="NOTIFY_PARENT_FAILURE">
83    </action>
84   </state>
86   <state name="NOTIFY_PARENT_SUCCESS" autorun="yes">
87    <action name="notify_parent_success"
88                   resulting_state="SUCCESS">
89    </action>
90   </state>
92   <state name="NOTIFY_PARENT_FAILURE" autorun="yes">
93    <action name="notify_parent_failure"
94                   resulting_state="FAILURE">
95    </action>
96   </state>
98   <state name="FAILURE"/>
99   <state name="SUCCESS"/>
100 </workflow>