Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note that you need to pass workflow as well. This is related to the fact that you can have multiple actors (inside workflow) that are actually pointing to the very same actor's code inside Kepler.

Helper script for listing all "broken" actors inside workflow file

It may happen that workflow contains inconsistent Code Parameters for an actor. For example, XML doesn't conform to XSD stored inside workflow. You can make bulk check of workflow by creating wrapper script.

Code Block
languagebash
titlemake sure to save this script in $HOME/bulk_check.sh
#!/bin/bash

while read p; do
   echo "----- Validating actor: ${p} -----"
   ./bin/workflow-editor -validate -workflow $1 -actor ${p}
   echo "----------------------"
done <$2

To make it work, you will also need list of all actors that belong to workflow and have Code Parameters.

Code Block
# I assume that you have file "workflow_ets.xml" inside your $HOME
 
> workflow-editor -actors -workflow ~/workflow_ets.xml | cut -f2 -d "-" > ~/actors_to_check
> chmod +x $HOME/bulk_check.sh
> $HOME/bulk_check.sh $HOME/workflow_ets.xml $HOME/actors_to_check
 

After running this script you will get the list of all actors that have some sort of issues related to XSD vs. XML inside Code Parameters.