===============================================================
 Enterprise Pack 2412
 WorkflowDictionary Adoption Audit
===============================================================


==================================================
app/controllers/AdminSubmissionWorkflowController.php
==================================================

--- submitted

--- screening
379:'screening',

--- under_review

--- revision_required

--- accepted
392:'accepted',

--- rejected
393:'rejected'

--- production
384:'production',

--- published
390:'published',
434:        if ($stage === 'published' && $this->columnExists('submissions', 'published_at')) {

--- submission
378:'submission',

--- review
380:'review',

--- revision
381:'revision',

--- decision
373:        $decision = trim($_POST['decision'] ?? '');
382:'decision',
422:    'decision' => $decision,

--- issue
388:'issue',

==================================================
app/services/SubmissionWorkflowService.php
==================================================

--- submitted

--- screening

--- under_review
509:            status = 'under_review',
637:    status = 'under_review',

--- revision_required

--- accepted

--- rejected

--- production
689:            status = 'production',
690:            stage = 'production',

--- published

--- submission

--- review
99:                stage = 'review',
510:            stage = 'review',

--- revision
55:        string $uploadType = 'revision',

--- decision
638:    stage = 'decision',
640:    workflow_stage = 'decision',

--- issue

==================================================
app/services/WorkflowDecisionService.php
==================================================

--- submitted

--- screening

--- under_review
63:        $status      = 'under_review';

--- revision_required
78:                $status      = 'revision_required';

--- accepted
70:                $status      = 'accepted';

--- rejected
85:                $status      = 'rejected';

--- production
69:                $targetStage = 'production';

--- published

--- submission

--- review
62:        $targetStage = 'review';

--- revision
77:                $targetStage = 'revision';

--- decision
84:                $targetStage = 'decision';

--- issue

==================================================
app/controllers/AdminBusinessToolsController.php
==================================================

--- submitted
4558:AND status='submitted'
7754:          AND status='submitted'

--- screening

--- under_review
4552:    status='under_review',
4554:    workflow_stage='under_review',
7748:            status='under_review',
7750:            workflow_stage='under_review',

--- revision_required

--- accepted
641:            'accepted'
946:            ['assigned','accepted'],
1058:            'accepted'

--- rejected
2707:        approval_status='rejected',
4327:            SET status='rejected'

--- production

--- published

--- submission
7755:          AND stage='submission'

--- review
4553:    stage='review',
7749:            stage='review',

--- revision

--- decision

--- issue

==================================================
app/controllers/ReviewerDashboardController.php
==================================================

--- submitted

--- screening

--- under_review

--- revision_required

--- accepted
90:            'accepted',
508:            status='accepted',

--- rejected

--- production

--- published

--- submission
435:'submission'=>$submission,

--- review

--- revision

--- decision

--- issue

==================================================
app/controllers/AuthorSubmissionController.php
==================================================

--- submitted
458:                'submitted',
1045:            'key' => 'submitted',

--- screening

--- under_review
1050:            'key' => 'under_review',

--- revision_required
1055:            'key' => 'revision_required',
1883:        'revision_required'
1954:        'revision_required'

--- accepted
1060:            'key' => 'accepted',
1726:    if (!in_array(($submission['status'] ?? ''), ['accepted', 'production', 'galley', 'published'], true)) {

--- rejected

--- production
1726:    if (!in_array(($submission['status'] ?? ''), ['accepted', 'production', 'galley', 'published'], true)) {
1833:            stage = 'production',

--- published
1070:            'key' => 'published',
1726:    if (!in_array(($submission['status'] ?? ''), ['accepted', 'production', 'galley', 'published'], true)) {

--- submission
459:                'submission',
1631:            'submission' => $submission,
1685:            'submission' => $submission,
1915:            'submission' => $submission

--- review
2056:        stage  = 'review',

--- revision
2036:                'revision',

--- decision

--- issue

==================================================
app/controllers/AdminIssueController.php
==================================================

--- submitted

--- screening

--- under_review

--- revision_required

--- accepted

--- rejected

--- production
139:  AND s.status='production'

--- published
135:                          AND g2.status IN ('approved','published')
303:            SET status='published',
317:            SET s.status='published',
318:                s.stage='published',
330:            SET g.status='published',

--- submission

--- review

--- revision

--- decision

--- issue
280:                stage='issue',

==================================================
app/controllers/AdminProductionController.php
==================================================

--- submitted

--- screening

--- under_review

--- revision_required

--- accepted
127:        s.status='accepted'
176:        $status === 'accepted'

--- rejected

--- production
142:        s.status='production'
193:        $status === 'production'
409:            SET status='production',
410:                stage='production',
535:        $this->setSubmissionStatus((int)$galley['submission_id'], 'production', 'production', 'approved');

--- published
222:        $status === 'published'

--- submission

--- review

--- revision

--- decision

--- issue
