cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

ECN/ECR Number

Amirtharaj_K
15-Moonstone

ECN/ECR Number

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

10 REPLIES 10

Hi @Amirtharaj_K 

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

PetrH

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.

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.

 

 

 

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.

Thank you for your reply and I am sorry for the delay in responding. If I use this in the expression robot, will ECR and ECN be the same number automatically or manually?

If I create multiple ECNs, how will it work in that scenario?

 

Thanks in Advance,

Aj

Hi @Amirtharaj_K 

If you use own code, you need to care what happen if...

It is up to you what you want to do if happens something

PetrH

@Amirtharaj_K 

I’d use a listener rather than workflow code.

The renumbering is instantaneous.


I assume the ECR number is used to set the ECN number. True?

They’d be identical except for your prefixes, ECR and ECN.

I am using this in an external class files in a static method but yes its called from an expression robot. Its renumbering the ECR that is associated to the ECN. The rule we have set is that they are 1:1 so we do not allow multiple ECRs tied to a single ECN or visa versa. Its automatic since the robot runs right after the ECR workflow starts. If your business rule is not 1:1, this code and solution would need to be modified to handle your specific numbering rules. Its just up to you to determine what's the right string for the newECNumber parameter.

@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.

Apologies for the delayed response.

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

 

Regards,

Aj

Announcements


Top Tags