Minor Revision

rated by 0 users
This post has 4 Replies | 2 Followers

Top 25 Contributor
Posts 50
Points 850
sherenegladysj Posted: Thu, Oct 29 2009 6:06 AM

Hello all,

I want to know know min_rev (minor_revision) works in the below scenario??

I have a 'Released' Part with major_rev 'A'. Once the Goal is updated the 'Released' Part state is changed to Preliminary & Revision becomes 'B'. I don't want that to be happened.

If there is any BOM / Document change then the state & revision can be chaged as now. but if there is any 'Goal'(Cost/Weight) change I want the state & Revision to be remained as it is & min_Rev to be increamented by 1.

How to achieve such a scenario??? Please help me to resolve this ASAP...

Regards,

Sherene

 

Top 10 Contributor
Posts 178
Points 1,240
SamsAn replied on Thu, Oct 29 2009 12:40 PM

Hi.

An option is to use the algorithm below.

1. Edit "Part" Life Cycle Map and set IsReleased=false for "Released" state.

2. Add new state (name="Really Released", IsReleased=true) to this LCM, transition from "Released" to "Really Released" for a fake identity (Aras PLM for example).

3. Edit "Part" ItemType, add OnBeforeUpdate server-side event. You should implement logic to check is the updated part has state=Released and only BOM "Goal" property value changed. Put the flag value into session. If flag is true then increment min_rev for the updated part.

4. Edit "Part" ItemType, add OnAfterUpdate server-side event. Its method should check the flag. If flag is flag is false (i.e. state=Released and not only BOM "Goal" property value changed) then the method should promote the updated part to "Really Released" state and call "edit" action for the part to cause IsRelealsed logic execution (i.e. Major_Rev to "B", etc.).

Hope it helps.

SamsAn.
Original Mind Any Level Innovator Solutions Free-Lancer, http://sites.google.com/site/caraacc

 

  • | Post Points: 35
Top 25 Contributor
Posts 50
Points 850

Hello SamsAn,

Thanks very much for your quick response.

Can you please explain the steps 3 & 4 with a sample code? I'm new to Aras Innovator coding.

How to check whether the Part_Goal Itemtype has modified or not? And how to set the session flag true. Can u pls explain.

REgards,

Sherene

  • | Post Points: 5
Top 25 Contributor
Posts 50
Points 850

Hello SamsAn,

Could you please let me know how to put the flag value into session??

It would be great if you can explain me with sample code.

Regards,

Sherene

  • | Post Points: 20
Top 10 Contributor
Posts 178
Points 1,240
SamsAn replied on Tue, Nov 3 2009 9:56 AM

See, for example, http://www.aras.com/Community/forums/p/202/511.aspx

particularly code lines including CCO.Session.

SamsAn.

  • | Post Points: 5
Page 1 of 1 (5 items) | RSS