Approve and copy
The run measures a file and stops on a question. Nothing else happens until someone answers: a yes copies the file, a no ends the run with nothing copied.
- File whose copy has to be approved
LICENSE- Existing folder the file is copied into
~/work/_temp/copy-target
The question
The run stopped here and waited. Answer the question and see which way the run goes.
Approve the copy
Decide whether 'LICENSE' (1.05 KB) may be copied. Answer 'approved' or 'rejected' as the answer text, and name the decision maker in 'reviewer'.
Goal of the step: Nothing is copied before someone approves it.
This card replays the question of a real run. The real run is answered from the command line.
How it runs
- code · 1 step
Measure the file
Reads the size of the file, so the question can state it.
- person · 1 step
Ask for approval
Stops and waits for a person. The state is saved, and the run can wait as long as it takes.
- code · 1 step
Copy the file
Runs only after the answer was a yes.
- code · 1 step
Report the copy
Says where the copy went and ends the run.
- code · 1 step
Measure the file
Reads the size of the file, so the question can state it.
- person · 1 step
Ask for approval
Stops and waits for a person. The state is saved, and the run can wait as long as it takes.
- code · 1 step
Report the rejection
Says who rejected the copy and ends the run. Nothing was copied.
Go deeper
- Every step, waitingThe graph, the path taken, what every step read and wrote.
- Every step, approvedThe graph, the path taken, what every step read and wrote.
- Every step, rejectedThe graph, the path taken, what every step read and wrote.
- The process as a fileThe graph this run executed, written as JSON.
- WalkthroughHow the question is asked and answered from the command line.
- All demonstrationsThe start page and the other processes.