WorkflowActivity activity = null;
Implementation impl = null;
ToolImplementation toolImpl = null;
ToolSet toolSet = null;
SubFlowImplementation subFlowImpl = null;
for (int j = 0; j < activitySize; ++j)
{
activity = (WorkflowActivity) activies.get(j);
impl = activity.getImplementation();
if (impl == null)
{
continue;
}
if ((impl instanceof ToolImplementation) && ActivityType.ACTIVITY_BUSINESS.equals(activity.getActivityType()))
{
toolImpl = (ToolImplementation) impl;
String appId = toolImpl.getApplicationID();
if ((appId == null) || (workflowPackage.findWorkflowApplication(appId) == null))
{
errorList.add(
new WorkflowException(
"Tool attribute 'Id' must be set.{packageID="
+ workflowPackage.getUUID()
+ ",processID="
+ workflowProcess.getUUID()
+ ",activityID="
+ activity.getUUID()
+ "}"));
}
}
if ((impl instanceof ToolSet) && ActivityType.ACTIVITY_BUSINESS.equals(activity.getActivityType()))
{
toolSet = (ToolSet) impl;
List toolImpls = toolSet.getToolKits();
int toolImpls_size = toolImpls.size();
for (int k = 0; k < toolImpls_size; ++k)
{
toolImpl = (ToolImplementation) toolImpls.get(k);
String appId = toolImpl.getApplicationID();
if ((appId == null) || (workflowPackage.findWorkflowApplication(appId) == null))
{
errorList.add(
new WorkflowException(
"Tool attribute 'Id' must be set.{packageID="
+ workflowPackage.getUUID()
+ ",processID="
+ workflowProcess.getUUID()
+ ",activityID="
+ activity.getUUID()
+ "}"));
}
}
}
if ((impl instanceof SubFlowImplementation)
&& ActivityType.ACTIVITY_SUBFLOW.equals(activity.getActivityType()))
{
subFlowImpl = (SubFlowImplementation) impl;
String processId = subFlowImpl.getProcessID();
if ((processId == null) || (workflowPackage.findWorkflowProcess(processId) == null))
{
errorList.add(
new WorkflowException(
"SubFlow attribute 'Id' must be set.{packageID="