Deploy BPMNs with multiple DFSP-IDs
#!/bin/sh
HOST="https://zeebeops.sandbox.fynarfin.io/zeebe/upload"
deploy(){
cmd="curl --insecure --location --request POST $HOST \
--header 'Platform-TenantId: $2' \
--form 'file=@\"$PWD/$1\"'"
echo $cmd
eval $cmd
# If curl response is not 200, it should fail the eval cmd
}
TENANTS="gorilla,lion,rhino"
IFS=',' read -ra TENANT_ARRAY <<< "$TENANTS"
for t in "${TENANT_ARRAY[@]}"; do
LOC="orchestration/feel/*.bpmn"
for f in $LOC; do
# Check if "DFSPID" is present in the filename
if echo "$f" | grep -q "DFSPID"; then
# Replace "DFSPID" with the current tenant value in the filename
new_file_name=$(echo "$f" | sed "s/DFSPID/$t/")
else
# If "DFSPID" is not present, use the original name
new_file_name="$f"
fi
deploy "$new_file_name" "$t"
done
LOC2="orchestration/feel/example/*.bpmn"
for f in $LOC2; do
# Check if "DFSPID" is present in the filename
if echo "$f" | grep -q "DFSPID"; then
# Replace "DFSPID" with the current tenant value in the filename
new_file_name=$(echo "$f" | sed "s/DFSPID/$t/")
else
# If "DFSPID" is not present, use the original name
new_file_name="$f"
fi
deploy "$new_file_name" "$t"
done
donePreviousConfiguration InstructionsNextHow to setup the Registering Institution ID with Budget Account
Last updated
Was this helpful?