Skip to main content
17-Peridot
November 15, 2023
Question

ECN/ECR Number

  • November 15, 2023
  • 3 replies
  • 2813 views

Hi Everyone,

I want to know, can we set the ECR and ECN numbers to be the same? Example: ECR-xxxxxxxx-xx & ECN-xxxxxxxx-xx

First ECR-/ECN- is common 15112023(Creation Date)-01(Autonumbering Count)

Thanks in Advance,
Amir

3 replies

HelesicPetr
22-Sapphire II
22-Sapphire II
November 15, 2023

Hi @Amirtharaj_K 

Yes you can by code in workflow where you renumber the ECN based on your needs..

PetrH

avillanueva
23-Emerald I
23-Emerald I
November 15, 2023

If you are setup with 1:1 between CRs and CNs, yes, it makes it easier for your users. @HelesicPetr was right that you'll need some renumber routine in one of your workflows to sync them. In my case, when the CN is created, it goes back and renumbers the CR. Stemming from paper days when this was a single form, we are viewing these as one in the same, a single entity. While we short circuited the CR process, I am still holding on to it as a method to gain pre-approval to even start working on a change.

17-Peridot
November 23, 2023

Thanks for the Re[play Mr. Petr & Mr. Avil I apologize for the delay in response.

 

Kindly share if you have any related doc/video for coding Mr. Petr

ECN Designer Leader creates an ECN and assigns it to the concerned person, revises and modifies it because it's in the Released State, nobody can modify right once we revise it going to an inwork state that time again the designer has to release it with use of promotion request. Here can we skip this process and directly send it to the Final ECN approver and the Reviewer-Designer Lead will check and accept it's directly released and go to the Approver. is it possible?

If the ECN is rejected again the designer creates a New ECN means a new number will be generated I want the previous number to be the same and -1, and -2 will added in suffixes.is it possible?

 

Regards,

Amir.

 

 

 

avillanueva
23-Emerald I
23-Emerald I
November 24, 2023

To renumber a change notice (ECN), use this:

WTChangeOrder2MasterIdentity ecnID = WTChangeOrder2MasterIdentity.newWTChangeOrder2MasterIdentity((WTChangeOrder2Master)ec.getMaster());
WTChangeRequest2MasterIdentity ecrID = WTChangeRequest2MasterIdentity.newWTChangeRequest2MasterIdentity((WTChangeRequest2Master)ecr.getMaster());
ecnID.setNumber(newECNumber);
ecrID.setNumber(newECNumber);
IdentityHelper.service.changeIdentity((WTChangeRequest2Master)ecr.getMaster(),ecrID);
IdentityHelper.service.changeIdentity((WTChangeOrder2Master)ec.getMaster(),ecnID);

wrap in appropriate try/catch blocks. Here I am making them the same so "newECNumber" is applied to both. Recommend creating a class with a static method then calling that from an expression robot. If the primarybusinessobject of the workflow is a Change Notice, you only need to find the associated ECR.

Looks like you are asking another question. Better to create a new posting on that topic. You need to decide if you will allow revisions on change objects. In my case we do not. We modify them during the review process but once the workflow is complete, they are locked and not used again.

18-Opal
November 26, 2023

@Amirtharaj_K 

Yes, you can using a listener.

 

I’ve done something similar for the Change Notice and Change Task.

It could work much the same for Change Request and Change Notice.

17-Peridot
January 23, 2024

Apologies for the delayed response.

Mr. Avil & Mr. Graham Could you please brief me on that?

 

Regards,

Aj