A walkthrough of workflow would be handy. As detailed or generalized as can be. I'll be trying it out for the first time on the fortress I'm just getting going. Haven't used workflow before, just been abusing the Manager, lol. As I understand it, it "suspends" then "un-suspends" work orders set to repeat in a workshop? Will the un-suspension be put back to the workshop it was taken from? If so, what about the case where said workshop is removed, destroyed, inaccessible, covered in magma, etc.? Handy for cases such as glass works where you have a couple next to the surface for gathering, then a magma glass works at the sea for actually making things.
The README give syntax, but no real detail about Theory of Operation, which is what I really need for all of these Hax.
it took me about a week to get used to it and now i cannot live without it just as i can't live without DT.
i grabbed this script off someone else on the forums when first learning workflow:
# Remember to Execute 'job item-material' lines with the workshop targeted
# They cannot be blindly executed by cutting and pasting the whole script.
# job item lines are REM'ed but still need to be executed at the appropriate
# workshop
###################################################
#Clear existing workflow settings.
#Thank you Crashews
#Added autobutcher reset
###################################################
#workflow clear all
#autobutcher stop
#autobutcher forget all
###################################################
#Autobutcher with 10 female kids, 10 male kids, 4 female adults , and 2 male adults
###################################################
#autobutcher target 10 10 4 2 all
#autobutcher autowatch
#autobutcher start
workflow enable auto-melt
workflow enable drybuckets
###################################################
# Farm
###################################################
workflow count FOOD 5000
workflow count DRINK 5000
#Farmer's workshop
#Process plants
workflow amount THREAD//GRASS_TAIL_PIG:THREAD 99999
#job item-material 1 GRASS_TAIL_PIG
#Process plants (Bag)
#workflow count LEAVES//BUSH_QUARRY 99999
#job item-material 1 BUSH_QUARRY
#Process plants (Barrel)
#workflow count LIQUID_MISC//POD_SWEET:EXTRACT 99999
#job item-material 1 POD_SWEET
#Milled
#workflow amount GLOB//BUSH_QUARRY 99999
#job item-material 1 BUSH_QUARRY
#workflow count POWDER_MISC//GRASS_WHEAT_CAVE:MILL 99999
#job item-material 1 GRASS_WHEAT_CAVE
#workflow count POWDER_MISC//POD_SWEET:MILL 99999
#job item-material 1 POD_SWEET
workflow amount POWDER_MISC//MUSHROOM_CUP_DIMPLE:MILL 99999
#job item-material 1 MUSHROOM_CUP_DIMPLE
###################################################
#@ STEEL Production
###################################################
workflow count BAR//COAL 100
workflow count BAR//IRON 20
workflow count BAR//COPPER 20
workflow count BAR//PIG_IRON 10
workflow count BAR//STEEL 40
###################################################
# SOAP Production
###################################################
#workflow count BAR//ASH 50
#workflow count LIQUID_MISC//LYE 50
#workflow count BAR/SOAP 50
###################################################
# Container
###################################################
workflow amount BARREL/WOOD 10
workflow amount BIN/WOOD 10
workflow amount BOX/CLOTH,SILK,YARN 10
workflow amount BUCKET 10
###################################################
# Furniture
###################################################
workflow amount ARMORSTAND 20
workflow amount WEAPONRACK 20
workflow amount CABINET 20
workflow amount DOOR 20
workflow amount BED 20
workflow amount BOX 20
workflow amount CHAIR 20
workflow amount TABLE 20
workflow amount STATUE 20
workflow amount COFFIN 20
workflow amount TOOL:ITEM_TOOL_LARGE_POT 10
workflow amount BLOCKS/STONE 100
workflow amount CHAIN/CLOTH 10
workflow amount CRUTCH 5
workflow amount SPLINT 5
###################################################
# METAL
###################################################
#workflow amount BAR//IRON 20
#workflow amount BAR//STEEL 20
#workflow amount BAR//COPPER 20
#workflow amount BAR//SILVER 10
#workflow amount BAR//ALUMINUM 10
//#workflow amount TRAPPARTS 20
###################################################
# Military Ammo
###################################################
workflow amount AMMO:ITEM_AMMO_BOLTS/METAL 2000 100
workflow amount AMMO:ITEM_AMMO_BOLTS/WOOD 1000 100
workflow amount AMMO:ITEM_AMMO_BOLTS/BONE 2000 100
###################################################
# Military Misc
###################################################
workflow amount QUIVER 10
workflow amount BACKPACK 10
workflow amount FLASK 10
###################################################
# Clothing
###################################################
#Head
workflow amount HELM:ITEM_HELM_CAP/CLOTH 20
workflow amount HELM:ITEM_HELM_HOOD/CLOTH 20
#Body
workflow amount ARMOR:ITEM_ARMOR_TUNIC/CLOTH 20
workflow amount ARMOR:ITEM_ARMOR_CLOAK/CLOTH 20
#Hands
workflow amount GLOVES:ITEM_GLOVES_MITTENS/CLOTH 20
#Legs
workflow amount PANTS:ITEM_PANTS_PANTS/CLOTH 20
#Feet
workflow amount SHOES:ITEM_SHOES_SOCKS/CLOTH 20
workflow amount SHOES:ITEM_SHOES_SHOES/CLOTH 20
###################################################
# Military 4 Sets (Assuming 3 standing squads with a full spare to sell\trade\etc)
###################################################
#Leather Armor Sets
workflow amount HELM:ITEM_HELM_HELM/LEATHER 10
workflow amount HELM:ITEM_HELM_HOOD/CLOTH 10
workflow amount ARMOR:ITEM_ARMOR_LEATHER/LEATHER 10
workflow amount ARMOR:ITEM_ARMOR_SHIRT/LEATHER 10
workflow amount ARMOR:ITEM_ARMOR_CLOAK/LEATHER 10
workflow amount GLOVES:ITEM_GLOVES_MITTENS/LEATHER 10
workflow amount PANTS:ITEM_PANTS_LEGGINGS/LEATHER 10
workflow amount SHOES:ITEM_SHOES_BOOTS/LEATHER 10
#Metal Armor Sets
#Head
workflow amount HELM:ITEM_HELM_HELM/METAL 10
workflow amount ARMOR:ITEM_ARMOR_BREASTPLATE/METAL 10
workflow amount ARMOR:ITEM_ARMOR_MAIL_SHIRT/METAL 10
workflow amount GLOVES:ITEM_GLOVES_GAUNTLETS/METAL 10
workflow amount PANTS:ITEM_PANTS_GREAVES/METAL 10
workflow amount SHOES:ITEM_SHOES_BOOTS/METAL 10
workflow amount SHIELD:ITEM_SHIELD_SHIELD 10
#Weapons
#Crossbows
workflow count WEAPON:ITEM_WEAPON_CROSSBOW/WOOD 20
#Obsidian Shortsword
#workflow count WEAPON:ITEM_WEAPON_SWORD_SHORT/STONE 40
workflow count WEAPON:ITEM_WEAPON_AXE_BATTLE/METAL 5
workflow count WEAPON:ITEM_WEAPON_HAMMER_WAR/METAL 5
###################################################
#PROCESS BASIC PLANT GOODS 50 count
###################################################
#Quarry Bush (The Seed is a Rock Nut)
# These need to be confirmed still. Not certain about the Press and Milling lines
###################################################
# PlantProcess (via Farmer's Workshop)
#workflow count LEAVES//BUSH_QUARRY 50
# Milling (via Millstone or Quern)
#This should give us paste (via Bouyancy)
#workflow count GLOB//BUSH_QUARRY 50 10
#job item-material 1 BUSH_QUARRY
#Pressing (Via Press, check to see if it is the seeds you are pressing rather then the plant)
#This should give us cake and OIL counts
#workflow count GLOB//BUSH_QUARRY:LIQUID_MISC 50
#workflow count LIQUID_MISC//BUSH_QUARRY:OIL 50
# Soap
#This should give us Rock Nut Soap count
#workflow count BAR//BUSH_QUARRY:OIL 50
###################################################
#Cave Wheat
###################################################
# PlantProcess
# Milling (via Bouyancy)
#workflow count POWDER_MISC//GRASS_WHEAT_CAVE:MILL 100 10
#job item-material 1 GRASS_WHEAT_CAVE
# Brewing count
#workflow count DRINK//GRASS_WHEAT_CAVE 50
#job item-material 1 GRASS_WHEAT_CAVE
# Cooking
# Pressing
###################################################
#Pig Tail
###################################################
# PlantProcess (via Bouyancy)
#workflow amount THREAD//GRASS_TAIL_PIG:THREAD 30
#job item-material 1 GRASS_TAIL_PIG
# Milling
# Brewing
# Cooking
# Pressing
# ONLY WITH MASTERWORK MOD (via Bouyancy)
# workflow amount LIQUID_MISC//GRASS_TAIL_PIG:OIL 100 10
# job item-material 1 GRASS_TAIL_PIG
###################################################
#Sweet Pod
###################################################
# PlantProcess (Added By Bouyancy)
workflow count LIQUID_MISC//POD_SWEET:EXTRACT 20 10
#job item-material 1 POD_SWEET
# Milling
workflow count POWDER_MISC//POD_SWEET:MILL 100 10
#job item-material 1 POD_SWEET
# Brewing
# Cooking
# Pressing
workflow works by finding a job that matches your command e.g my
workflow amount CHAIR 20
will match the first repeatable chair job that i create in either the wood, metal, stone or glass workshops and once matched, it will save that job number and monitor your stock levels of that item, if your workshop gets destroyed, the workflow order still exists but just doesn't have a job number to match until you create another workshop with a repeated chair order.
as to the "How-To" guide, this is what i do now, after 2 weeks of trial and error.
when i embark, i load the whole workflow script using the script command in dfhack. at the start none of the workflow orders can find jobs so u get all these yellow errors about cannot find job or something.
then i setup each of my industries and let workflow find the jobs
e.g, for furniture: build a carpenter, create a repeatable bed job. if you pause the game here and run workflow again, you'll see that the bed job has been found and there's a current count of beds: 0 and a target amount 20. in the mason, setup repeatable table, throne, armorstand, etc etc...
and that's it, ur mason and carpenter will continuously create these furniture until it reaches the target amount and when it does the job auto suspends.
so then i've dug out some living spaces and used quickfort to assign 20 bedrooms with a macro and off they go, all furniture is now used. you'll see in announcements that the jobs which were suspended are now 'resuming production: bed' etc etc...
i do this for food/drinks, clothing, metal bars + charcoal, containers (bins, buckets etc etc) so i rarely use the manager anymore... used to get RSI from manager spamming.
but with all my figuring out, i still haven't figured out how to do dying continuously... is that spelt right?