Hello
I've seen that there might be a problem with the YAML files that the Archy tool uses. The thing is that in the Decision elements, it uses "yes" and "no" as keys for the outputs. In YAML, those values are considered booleans, and many YAML parsers do that translation. So, as it is now, it is impossible to use them to process those files.
For example, using the most used Python YAML processing package (pyyaml):
Code:
import yaml
with open('Test Archy Booleans_v1-0.yaml') as f:
data = yaml.safe_load(f)
with open('Test Archy Booleans_v1-1.yaml', 'w') as f:
yaml.dump(data, f)
Input:
# ...
tasks:
- task:
name: Starting Task
refId: Starting Task_12
actions:
- decision:
name: Decision
condition:
lit: true
outputs:
yes:
actions:
- disconnect:
name: Disconnect
no:
actions:
- disconnect:
name: Disconnect
Output:
# ...
tasks:
- task:
name: Starting Task
refId: Starting Task_12
actions:
- decision:
name: Decision
condition:
lit: true
outputs:
true:
actions:
- disconnect:
name: Disconnect
false:
actions:
- disconnect:
name: Disconnect