|
@@ 144-170 (lines=27) @@
|
| 141 |
|
reindex_request(analysis) |
| 142 |
|
|
| 143 |
|
|
| 144 |
|
def after_verify(analysis): |
| 145 |
|
""" |
| 146 |
|
Method triggered after a 'verify' transition for the analysis passed in |
| 147 |
|
is performed. Promotes the transition to the Analysis Request and to |
| 148 |
|
Worksheet (if the analysis is assigned to any) |
| 149 |
|
This function is called automatically by |
| 150 |
|
bika.lims.workfow.AfterTransitionEventHandler |
| 151 |
|
""" |
| 152 |
|
|
| 153 |
|
# Promote to analyses this analysis depends on |
| 154 |
|
for dependency in analysis.getDependencies(): |
| 155 |
|
doActionFor(dependency, 'verify') |
| 156 |
|
|
| 157 |
|
# TODO: REFLEX TO REMOVE |
| 158 |
|
# Do all the reflex rules process |
| 159 |
|
if IRequestAnalysis.providedBy(analysis): |
| 160 |
|
analysis._reflex_rule_process('verify') |
| 161 |
|
|
| 162 |
|
# Promote transition to worksheet |
| 163 |
|
ws = analysis.getWorksheet() |
| 164 |
|
if ws: |
| 165 |
|
doActionFor(ws, 'verify') |
| 166 |
|
|
| 167 |
|
# Promote transition to Analysis Request |
| 168 |
|
if IRequestAnalysis.providedBy(analysis): |
| 169 |
|
doActionFor(analysis.getRequest(), 'verify') |
| 170 |
|
reindex_request(analysis) |
| 171 |
|
|
| 172 |
|
|
| 173 |
|
def after_publish(analysis): |
|
@@ 60-86 (lines=27) @@
|
| 57 |
|
pass |
| 58 |
|
|
| 59 |
|
|
| 60 |
|
def after_submit(analysis): |
| 61 |
|
"""Method triggered after a 'submit' transition for the analysis passed in |
| 62 |
|
is performed. Promotes the submit transition to the Worksheet to which the |
| 63 |
|
analysis belongs to. Note that for the worksheet there is already a guard |
| 64 |
|
that assures the transition to the worksheet will only be performed if all |
| 65 |
|
analyses within the worksheet have already been transitioned. |
| 66 |
|
This function is called automatically by |
| 67 |
|
bika.lims.workfow.AfterTransitionEventHandler |
| 68 |
|
""" |
| 69 |
|
# Promote to analyses this analysis depends on |
| 70 |
|
for dependency in analysis.getDependencies(): |
| 71 |
|
doActionFor(dependency, "submit") |
| 72 |
|
|
| 73 |
|
# TODO: REFLEX TO REMOVE |
| 74 |
|
# Do all the reflex rules process |
| 75 |
|
if IRequestAnalysis.providedBy(analysis): |
| 76 |
|
analysis._reflex_rule_process('submit') |
| 77 |
|
|
| 78 |
|
# Promote transition to worksheet |
| 79 |
|
ws = analysis.getWorksheet() |
| 80 |
|
if ws: |
| 81 |
|
doActionFor(ws, 'submit') |
| 82 |
|
|
| 83 |
|
# Promote transition to Analysis Request |
| 84 |
|
if IRequestAnalysis.providedBy(analysis): |
| 85 |
|
doActionFor(analysis.getRequest(), 'submit') |
| 86 |
|
reindex_request(analysis) |
| 87 |
|
|
| 88 |
|
|
| 89 |
|
def after_retract(analysis): |