Hi All,
I have an issue with notification queue.
Every time I query an object using code and update it, an entry is created in notification queue.
I want to avoid this.
Any help would be appreciated.
Regards
Sudeep
Do you have a subscription enabled for those objects which are updated through the query? What your query does? Do you have an advanced life cycle for the objects you are trying to update?
Thank you
Binesh Kumar
Barry Wehmiller
I am querying latest version of a part. Here is the code i am using:
QuerySpec querySpec = new wt.query.QuerySpec(WTPart.class);
querySpec.appendWhere(new wt.query.SearchCondition(WTPart.class, "master>number", wt.query.SearchCondition.EQUAL, partNumber, true), new int[]{0});
querySpec.appendAnd();
querySpec.appendWhere(new wt.query.SearchCondition(WTPart.class,"view.key.id",wt.query.SearchCondition.EQUAL,viewNum), new int[]{0});
QueryResult queryResult = PersistenceHelper.manager.find((StatementSpec)querySpec);
if(queryResult.hasMoreElements())
{
part = (WTPart) PartHelper.getLatestVersion((WTPart) queryResult.nextElement());
}
2. Info Engine Task:
<ie:webject name="Search-Objects" type="OBJ">
<ie:param name="INSTANCE" data="<%=processor%>"/>
<ie:param name="ATTRIBUTE" data="name,number,view.id^name" delim=","/>
<ie:param name="dbUser" data="wcadmin"/>
<ie:param name="PassWd" data="wcadmin"/>
<ie:param name="WHERE" data="(number='<%=partNumber%>')"/>
<ie:param name="WHERE" data="(view.id^name='<%=viewName%>')"/>
<ie:param name="VERSION" data="LATEST"/>
<ie:param name="TYPE" data="WCTYPE|wt.part.WTPart"/>
<ie:param name="GROUP_OUT" data="partInfo"/>
</ie:webject>
All the objects have Basic lifecycle.
Hi Sudeep,
The above expression only queries the data, can you share the the API's used to update the object .
Regards,
Bhushan
As Binesh said, first thing is to see if their are any subscriptions on the objects. Second is to check to see if you have any notification policies configured in the system.
Experience tells me to check the simple stuff first
Its OOTB behavior. When you check out and check in part, notification entries are created.