Hi Eric
the syntax is something like
ArrayList<ParameterValue> yourparamaters=new ArrayList<ParameterValue>();
yourparamaters.add(new hudson.model.StringParameterValue('PARAM','123'));
build job: 'yourJobNameToBuild', parameters: yourparamaters
you can also shorthand this if you don't need to re-use the same parameters
build job: 'yourJobNameToBuild', parameters: [new hudson.model.StringParameterValue('PARAM1','123'), new hudson.model.StringParameterValue('PARAM2','345')]
The next thing you need is the list of parameters the workflow was invoked with -
(I am guessing from scanning the source - so may not be 100% correct)
The parameters are all exposed to the to the workflow as variables
so parameter "BOB" with value "TrueGent" can be accessed as BOB
e.g.
echo "the value of BOB is " + BOB
if you don't actually know what parameters you want (ie you want all of them) then I think you need to retreive them programatically (I don't beleive they are injected as a list of paramatervalues - or a map by default - so you may require a custom step implementation - however I'm sure someone will pipe up with a quick and easy way to do it.
/James
However - I would caution against using the workflow to trigger other jobs if you can - It's ideal is to self contain the workflow and steps in a single place so you don't have configuration sprawl (the workflow and all the configuration of it is defined in one single place).
/James