Skip to main content
1-Visitor
Oct 26, 2015 10:47 AM UTC
Question

notification issue

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

5 replies

2-Explorer
Oct 26, 2015 2:28 PM UTC

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

Translate
spai-21-VisitorAuthor
1-Visitor
Oct 27, 2015 7:03 AM UTC

I am querying latest version of a part. Here is the code i am using:

  1. Queryspec:

    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.


Translate
16-Pearl
Nov 3, 2015 5:30 PM UTC

Hi Sudeep,

The above expression only queries the data, can you share the the API's used to update the object .

Regards,

Bhushan

Translate