cancel
Showing results for 
Search instead for 
Did you mean: 

Checking the status of children to send a bom in a workflow

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Hello,

 

Is it possible to check the status of the children of a bom before launching the bom's head in a workflow?

 

Best regards.

16 REPLIES

Re: Checking the status of children to send a bom in a workflow

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

Have you seen a video or demo of BCT CheckIt?

https://www.bct-technology.com/en/portfolio/bct-products/bct-checkit.html


Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11.0.1.mp01 | SW 2016 | TcUA 11.2.3
Evaluating:AW 3.2

Re: Checking the status of children to send a bom in a workflow

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Hello Randy,

Thank you for your answer.
therefore I was looking for a solution existing OOTB like a rule handler.

Do you have any clues about that ?

Best regards.

Re: Checking the status of children to send a bom in a workflow

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom
Not that I know of. There are handlers that can perform validations, especially the TcRS handlers, but not before submitting them to a workflow.

Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11.0.1.mp01 | SW 2016 | TcUA 11.2.3
Evaluating:AW 3.2

Re: Checking the status of children to send a bom in a workflow

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Thank you Randy, you're really helpful.

However, I think I didn't explain myself correctly.

 

I said "before lauching " but what I really meant was "at the workflow entry"

My goal is when launched, the workflow would check the status of the children, proceeding to the next steps if they all have the correct status or notifying and exiting the workflow if the children don't have the right status.

I was looking for a way to do that check then.

 

Again sorry for my imprecision Smiley Happy

Re: Checking the status of children to send a bom in a workflow

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom
In that case, you may be interested in two rule handlers:
PS-check-assembly-status-progression
TCRS-check-bomchild-statuslist

Use one or the other depending on your use-case. The PS rule will only check one level which is fine if all previous releases have also used this handler. Otherwise use the TCRS handler as it can check all levels.

Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11.0.1.mp01 | SW 2016 | TcUA 11.2.3
Evaluating:AW 3.2

Re: Checking the status of children to send a bom in a workflow

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Hello,

 

Thank you, yes i think the TCRS-check-bomchild-statuslist it is what I was looking for.

But it is not running well in my test and i not understand why !!!

 

My test Bom with all children with status 10My test Bom with all children with status 10My simple WFMy simple WFThe rule handler on action "complete" in task "perform-signoffs"The rule handler on action "complete" in task "perform-signoffs"The error I getThe error I get

Do you have idea ?

 

Best regards.

 

 

 

 

Re: Checking the status of children to send a bom in a workflow

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

The "-check_job" parameter should have the value "n" unless you are submitting the assy and components all in the same workflow. If your intention is to just submit the assy then set the arg to n. Also review your tcserver syslog for more info. You've used "-stop" with value "y" which will halt the workflow instead of just popping up a warning and sinnce the components were not in the wf the process is stopped.


Randy Ellsworth, Teamcenter Architect, Applied CAx, LLC
NX 11.0.1.mp01 | SW 2016 | TcUA 11.2.3
Evaluating:AW 3.2

Re: Checking the status of children to send a bom in a workflow

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

Hello,

I have the same result when i put the "-check_job" value to n or tu y. I have a message telling me that all components are not in status 10 (but they are).

 

In the syslog i can see the fallowing:

Contents of the error store:-
       ERROR  1074 Unable to open file \\TCRSDEMO\TC_DATA\log_TCRSDEMO_TcX\system.log
       ERROR    10 No write access.
PROTECT MARK 82822
PROTECT MARK 82821
       ERROR 33083 Business rules for handler 'TCRS-check-bomchild-statuslist' on action 'Complete' in task 'perform-signoffs' are not met.
       ERROR 22115 Error occurred in the handler TCRS-check-bomchild-statuslist
 not all compoments have a valid status of: 10

 

 

Do you have any idea ?

 

Best regards.

Re: Checking the status of children to send a bom in a workflow

Solution Partner Genius Solution Partner Genius
Solution Partner Genius

OK, it was my error, the "-rule" parameter is not optional.

 

Now it's working !!!

 

Thank you.