cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

I can't add a listener of WorkItem objects

è吕
3-Visitor

I can't add a listener of WorkItem objects

截图02.png

this's my codes, and i can't catch the event target of workitem.

can you help me ,thank you!

1 ACCEPTED SOLUTION

Accepted Solutions

Try this

if((event.getEventType( ).equals( PersistenceManagerEvent.INSERT )) && ( target instanceof WorkItemLink))

Thanks

Binesh Kumar

View solution in original post

4 REPLIES 4

Try this

if((event.getEventType( ).equals( PersistenceManagerEvent.INSERT )) && ( target instanceof WorkItemLink))

Thanks

Binesh Kumar

thanks for your answer,and how can i get WorkItem with WorkItemLink ?

WorkItemLink workitemlink = (WorkItemLink) target;

WorkItem workitem = workitemlink.getWorkItem();

it works ,

thanks a lot ~~

Top Tags