i'm trying to catch ProcessDefinition activities, and i found in the forum "http://forums.activiti.org/content/gettaskdesfinitionlist" that i need to cast the RepositoryService to RepositoryServiceImpl, but i'm getting CastClassException when i'm doing this. I'm using WELD for injection my RepositoryService and say that i can cast WELD Proxy.
Any one knows how get activities from another way, or do this cast with WELD??
There is a better way not: get the BpmnModel from the repository Service and get the process definition activities that way. No need to cast in that case.
<code> /** * Returns the {@link BpmnModel} corresponding with the process definition with * the provided process definition id. The {@link BpmnModel} is a pojo versions * of the BPMN 2.0 xml and can be used to introspect the process definition * using regular Java. */ BpmnModel getBpmnModel(String processDefinitionId); </code>