1-
21gui/workflow
32============
43
54.. dfhack-tool ::
6- :summary: todo .
5+ :summary: Manage automated item production rules .
76 :tags: fort auto jobs
87
9-
10- Bind to a key (the example config uses Alt-W), and activate with a job selected
11- in a workshop in :kbd: `q ` mode.
8+ This tool provides a simple interface to item production constraints managed by
9+ `workflow `. When a workshop job is selected in :kbd: `q ` mode and this tool is
10+ invoked, it displays the constraints applicable to the current job and their
11+ current status. It also allows you to modify existing constraints or add new
12+ ones.
1213
1314.. image :: /docs/images/workflow.png
1415
15- This script provides a simple interface to constraints managed by `workflow `.
16- When active, it displays a list of all constraints applicable to the
17- current job, and their current status.
18-
19- A constraint specifies a certain range to be compared against either individual
20- *item * or whole *stack * count, an item type and optionally a material. When the
21- current count is below the lower bound of the range, the job is resumed; if it
22- is above or equal to the top bound, it will be suspended. Within the range, the
23- specific constraint has no effect on the job; others may still affect it.
24-
25- Pressing :kbd: `i ` switches the current constraint between counting stacks or items.
26- Pressing :kbd: `r ` lets you input the range directly;
27- :kbd: `e `, :kbd: `r `, :kbd: `d `, :kbd: `f ` adjust the
28- bounds by 5, 10, or 20 depending on the direction and the :kbd: `i ` setting (counting
29- items and expanding the range each gives a 2x bonus).
30-
31- Pressing :kbd: `a ` produces a list of possible outputs of this job as guessed by
32- workflow, and lets you create a new constraint by choosing one as template. If you
33- don't see the choice you want in the list, it likely means you have to adjust
34- the job material first using `job ` ``item-material `` or `gui/workshop-job `,
35- as described in the `workflow ` documentation. In this manner, this feature
36- can be used for troubleshooting jobs that don't match the right constraints.
16+ A constraint is a target range to be compared against either the number of
17+ individual itemis or the number of item stacks. It also includes an item type
18+ and, optionally, a material. When the current stock count is below the lower
19+ bound of the range, the job is resumed; if it is above or equal to the top
20+ bound, it will be suspended. If there are multiple constraints, being out of the
21+ range of any constraint will cause the job to be suspended.
22+
23+ Pressing :kbd: `I ` switches the current constraint between counting stacks and
24+ counting individual items. Pressing :kbd: `R ` lets you input the range directly,
25+ or :kbd: `e `, :kbd: `r `, :kbd: `d `, :kbd: `f ` incrementally adjusts the bounds.
26+
27+ Pressing :kbd: `A ` produces a list of possible outputs of this job as guessed by
28+ workflow, and lets you create a new constraint by choosing one as template. If
29+ you don't see the choice you want in the list, it likely means you have to
30+ adjust the job material first using `job item-material <job> ` or
31+ `gui/workshop-job `, as described in the `workflow ` documentation. In this
32+ manner, this feature can be used for troubleshooting jobs that don't match the
33+ right constraints.
3734
3835.. image :: /docs/images/workflow-new1.png
3936
40- If you select one of the outputs with :kbd: `Enter `, the matching constraint is simply
41- added to the list. If you use :kbd: `Shift `:kbd: `Enter `, the interface proceeds to the
42- next dialog, which allows you to edit the suggested constraint parameters to
43- suit your need, and set the item count range.
37+ If you select one of the outputs with :kbd: `Enter `, the matching constraint is
38+ simply added to the list. If you use :kbd: `Shift `:kbd: `Enter `, the interface
39+ proceeds to the next dialog, which allows you to edit the suggested constraint
40+ parameters and set the item count range.
4441
4542.. image :: /docs/images/workflow-new2.png
4643
47- Pressing :kbd: `s ` (or, with the example config, Alt-W in the :kbd: `z ` stocks screen)
48- opens the overall status screen:
44+ Pressing :kbd: `S ` (or by using the hotkey in the :kbd: `z ` stocks screen) opens
45+ the overall status screen where you can manage constraints for all jobs :
4946
5047.. image :: /docs/images/workflow-status.png
5148
5249This screen shows all currently existing workflow constraints, and allows
53- monitoring and/or changing them from one screen. The constraint list can
54- be filtered by typing text in the field below.
50+ monitoring and/or changing them from one screen.
5551
56- The color of the stock level number indicates how "healthy" the stock level
57- is, based on current count and trend. Bright green is very good, green is good,
58- red is bad, bright red is very bad.
52+ The color of the stock level number indicates how "healthy" the stock level is,
53+ based on current count and trend. Bright green is very good, green is good, red
54+ is bad, bright red is very bad.
5955
6056The limit number is also color-coded. Red means that there are currently no
6157workshops producing that item (i.e. no jobs). If it's yellow, that means the
@@ -65,3 +61,11 @@ The chart on the right is a plot of the last 14 days (28 half day plots) worth
6561of stock history for the selected item, with the rightmost point representing
6662the current stock value. The bright green dashed line is the target
6763limit (maximum) and the dark green line is that minus the gap (minimum).
64+
65+ Usage
66+ -----
67+
68+ ``gui/workflow ``
69+ View and manage constraints for the currently selected workshop job.
70+ ``gui/workflow status ``
71+ View and manage constraints across all `workflow ` managed jobs.
0 commit comments