Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Booj2 Absent Member.
Absent Member.
838 views

Rule changes


Hello,


I'm using GW2014

GroupWise Agent Build Version 14.0.1 -118328
GroupWise Agent Build Date 11-09-14
GroupWise Resource Build Date 10-07-14


I'm able to enable/disable a rule with modifyItemRequest.

If I want to change the sequence number of a rule, then a modifyItemRequest or a modifyItemsRequest for all rules who's sequences are changed do not work.

Is the only solution to delete and recreate all the changed rules again? (in the correct order?)


Hans
Labels (1)
0 Likes
3 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Rule changes

I didn't have a problem just changing the sequence number of a rule.
If you want to change all sequence numbers, you will have to change all the
rules affected.

Here is an example of what I did:
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns0="http://schemas.novell.com/2005/01/GroupWise/methods">
<env:Header>
<ans1:session
xmlns:ans1="http://schemas.novell.com/2005/01/GroupWise/types">MIhnDrOm7kumA
4wS</ans1:session>
<ans1:gwTrace
xmlns:ans1="http://schemas.novell.com/2005/01/GroupWise/types">false</ans1:g
wTrace>
</env:Header>
<env:Body>
<ns0:modifyItemRequest>
<ns0:id>45928581.domain.PO1.100.1776172.1.4F1.1@10</ns0:id>
<ns0:updates>
<ans1:update
xmlns:ans1="http://schemas.novell.com/2005/01/GroupWise/types"
xsi:type="ans1:Rule">
<ans1:sequence>1</ans1:sequence>
</ans1:update>
</ns0:updates>
<ns0:recurrenceAllInstances>0</ns0:recurrenceAllInstances>
</ns0:modifyItemRequest>
</env:Body>
</env:Envelope>

What does your soap trace look like?

Preston


>>> On Thursday, January 01, 2015 at 7:03 AM, Hans

Boone<booj@no-mx.forums.novell.com> wrote:

> Hello,
>
>
> I'm using GW2014
>
> GroupWise Agent Build Version 14.0.1 ‑118328
> GroupWise Agent Build Date 11‑09‑14
> GroupWise Resource Build Date 10‑07‑14
>
>
> I'm able to enable/disable a rule with modifyItemRequest.
>
> If I want to change the sequence number of a rule, then a
> modifyItemRequest or a modifyItemsRequest for all rules who's sequences
> are changed do not work.
>
> Is the only solution to delete and recreate all the changed rules again?
> (in the correct order?)
>
>
> Hans


0 Likes
Booj2 Absent Member.
Absent Member.

Re: Rule changes


Hello Preston,


Thank you.

Is this info somewhere in the documentation?


Hans



>>>

From: Preston Stephenson<PStephenson@gw.novell.com>
To:novell.devsup.gwsoap
Date: Maandag 5 Januari 2015 15:03
Subject: Re: Rule changes


I didn't have a problem just changing the sequence number of a rule.
If you want to change all sequence numbers, you will have to change all the
rules affected.

Here is an example of what I did:
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns0="http://schemas.novell.com/2005/01/GroupWise/methods">
<env:Header>
<ans1:session
xmlns:ans1="http://schemas.novell.com/2005/01/GroupWise/types">MIhnDrOm7kumA
4wS</ans1:session>
<ans1:gwTrace
xmlns:ans1="http://schemas.novell.com/2005/01/GroupWise/types">false</ans1:g
wTrace>
</env:Header>
<env:Body>
<ns0:modifyItemRequest>
<ns0:id>45928581.domain.PO1.100.1776172.1.4F1.1@10</ns0:id>
<ns0:updates>
<ans1:update
xmlns:ans1="http://schemas.novell.com/2005/01/GroupWise/types"
xsi:type="ans1:Rule">
<ans1:sequence>1</ans1:sequence>
</ans1:update>
</ns0:updates>
<ns0:recurrenceAllInstances>0</ns0:recurrenceAllInstances>
</ns0:modifyItemRequest>
</env:Body>
</env:Envelope>

What does your soap trace look like?

Preston



>>> On Thursday, January 01, 2015 at 7:03 AM, Hans

Boone<booj@no-mx.forums.novell.com> wrote:


> Hello,
>
>
> I'm using GW2014
>
> GroupWise Agent Build Version 14.0.1 ‑118328
> GroupWise Agent Build Date 11‑09‑14
> GroupWise Resource Build Date 10‑07‑14
>
>
> I'm able to enable/disable a rule with modifyItemRequest.
>
> If I want to change the sequence number of a rule, then a
> modifyItemRequest or a modifyItemsRequest for all rules who's sequences
> are changed do not work.
>
> Is the only solution to delete and recreate all the changed rules again?
> (in the correct order?)
>
>
> Hans
0 Likes
Booj2 Absent Member.
Absent Member.

Re: Rule changes


Hello Preston,


Previous post should have been a reply to the Peek mode.


I found the problem. I assumed the sequence number was always an ascending number, but I found that rules can have the same sequence number.


I just decremented the sequence number for the Rule I wanted to move one place up (like the GW-client rule window), the new sequence number was still larger than the sequence number of the rule above so "nothing" changed. I will have to rewrite that routine.


Hans








>>>

From: Hans Boone<booj@no-mx.forums.novell.com>
To:novell.devsup.gwsoap
Date: Maandag 5 Januari 2015 18:23
Subject: Re: Rule changes

Hello Preston,



Thank you.

Is this info somewhere in the documentation?



Hans




>>>

From: Preston Stephenson<PStephenson@gw.novell.com>
To:novell.devsup.gwsoap
Date: Maandag 5 Januari 2015 15:03
Subject: Re: Rule changes


I didn't have a problem just changing the sequence number of a rule.
If you want to change all sequence numbers, you will have to change all the
rules affected.

Here is an example of what I did:
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns0="http://schemas.novell.com/2005/01/GroupWise/methods">
<env:Header>
<ans1:session
xmlns:ans1="http://schemas.novell.com/2005/01/GroupWise/types">MIhnDrOm7kumA
4wS</ans1:session>
<ans1:gwTrace
xmlns:ans1="http://schemas.novell.com/2005/01/GroupWise/types">false</ans1:g
wTrace>
</env:Header>
<env:Body>
<ns0:modifyItemRequest>
<ns0:id>45928581.domain.PO1.100.1776172.1.4F1.1@10</ns0:id>
<ns0:updates>
<ans1:update
xmlns:ans1="http://schemas.novell.com/2005/01/GroupWise/types"
xsi:type="ans1:Rule">
<ans1:sequence>1</ans1:sequence>
</ans1:update>
</ns0:updates>
<ns0:recurrenceAllInstances>0</ns0:recurrenceAllInstances>
</ns0:modifyItemRequest>
</env:Body>
</env:Envelope>

What does your soap trace look like?

Preston



>>> On Thursday, January 01, 2015 at 7:03 AM, Hans

Boone<booj@no-mx.forums.novell.com> wrote:


> Hello,
>
>
> I'm using GW2014
>
> GroupWise Agent Build Version 14.0.1 ‑118328
> GroupWise Agent Build Date 11‑09‑14
> GroupWise Resource Build Date 10‑07‑14
>
>
> I'm able to enable/disable a rule with modifyItemRequest.
>
> If I want to change the sequence number of a rule, then a
> modifyItemRequest or a modifyItemsRequest for all rules who's sequences
> are changed do not work.
>
> Is the only solution to delete and recreate all the changed rules again?
> (in the correct order?)
>
>
> Hans
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.