I can't add a listener of WorkItem objects
Mar 30, 2016
07:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Mar 30, 2016
07:08 AM
I can't add a listener of WorkItem objects
this's my codes, and i can't catch the event target of workitem.
can you help me ,thank you!
Solved! Go to Solution.
Labels:
- Labels:
-
Other
ACCEPTED SOLUTION
Accepted Solutions
Mar 30, 2016
08:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Mar 30, 2016
08:01 AM
Try this
if((event.getEventType( ).equals( PersistenceManagerEvent.INSERT )) && ( target instanceof WorkItemLink))
Thanks
Binesh Kumar
4 REPLIES 4
Mar 30, 2016
08:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Mar 30, 2016
08:01 AM
Try this
if((event.getEventType( ).equals( PersistenceManagerEvent.INSERT )) && ( target instanceof WorkItemLink))
Thanks
Binesh Kumar
Mar 30, 2016
08:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Mar 30, 2016
08:24 AM
thanks for your answer,and how can i get WorkItem with WorkItemLink ?
Mar 30, 2016
08:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Mar 30, 2016
08:46 AM
WorkItemLink workitemlink = (WorkItemLink) target;
WorkItem workitem = workitemlink.getWorkItem();
Mar 30, 2016
09:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Mar 30, 2016
09:04 AM
it works ,
thanks a lot ~~
