Cast RepositoryService to RepositoryServiceImpl

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2013 11:55 AM
Hi,
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??
Thank you very much
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??
Thank you very much
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2013 03:42 AM
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.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-12-2013 04:05 PM
Thanks Joram 😃
It worked!!
It worked!!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-14-2014 01:53 AM
Sorry, but I couldn't find this method in BpmnModel class, I'am working with activiti 5.14 version and using CDI.
Can you helpme please!!!!
Greattings!!!
Can you helpme please!!!!
Greattings!!!
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2014 05:11 AM
What do you mean?
On the repositoryService:
<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>
On the repositoryService:
<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>
