I need get the system fields before launching the workflow to make them available for user to set.fields like F_subject and F_Comment
filenet.vw.api.VWWorkflowDefinition workflowDefinition = vwSession.fetchWorkflowDefinition(-1, workClassName, true);
filenet.vw.api.VWFieldDefinition []fieldDefinitions = workflowDefinition.getFields();
used calling getFields method on the workflowdefinition in above code it is returning F_trackers only
I can made those fields by hard coding but I doesn't like that. Need help regarding this
Did you try getting step element parameters? For example, when launching workflow:
VWStepElement stepElement = vwSession.createWorkflow(workflowName);
stepElement.getParameters(VWFieldType.ALL_FIELD_TYPES, VWStepElement.FIELD_USER_AND_SYSTEM_DEFINED);