FormalParameter formalParameter = null;
WorkflowParameter initParameter = null;
ActualParameter actualParameter = null;
ParameterMode paramMode = null;
Class srcClass = null;
Class dstClass = null;
int sizeParams = app.getFormalParameters().size();
params = new WorkflowParameter[sizeParams];
for (int i = 0; i < sizeParams; ++i)
{
formalParameter = app.findFormalParameter(i);
actualParameter = (ActualParameter) parameters.get(i);
initParameter = workflowCase.getCaseContext().getParameterByName(actualParameter.getUUID());
srcClass = formalParameter.getType();
dstClass = initParameter.getType();
paramMode = formalParameter.getMode();
if (dstClass.equals(srcClass))
{
if (paramMode.equals(ParameterMode.MODE_IN))
{
params[i] = initParameter.copy();
}
else
{