on 11-06-2012 5:30 PM
I wanted to see if anyone has any advice. Before an SFC is packed, I want to count all the NC's (both open and closed) that have occurred on the SFC. If the count is greater than or equal to a parameter, send it to operation1 for a Quality review. If it's lower, send it to pack or done (doesn't matter). Has anyone written a router script for this or does anyone have any advice?
thanks
Kevin McDaniel
Hi Kevin,
I believe you could easily do it by creating a custom router script that would retrieve info from database and evaluate the results. Based on the results you can send it to one or another operation exit branch.
I can't provide you with an example of such script, but I'm pretty positive it would be not that hard to code it.
Konstantin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can query DB directly with the SQL that counts what you need. Naturally you will be responsible for the query and for its output, but this way you can account all NCs at once.
Example of executing query in router script:
sql= "select to_char(start_time,'YYYY-MM') as dc_date "
+" from nc_data nc, parametric pa "
+" where pa.operation_bo = nc.operation_bo(+) "
+" and pa.times_processed = nc.times_processed(+) "
+" and pa.para_context_gbo = nc.nc_context_gbo "
+" and pa.test_status = 'FAIL' "
+" and pa.para_context_gbo = 'SFCBO:"+SITE+","+SFC+"' "
+" and pa.operation_bo = '"+operationbo+"' "
+" and pa.times_processed = '"+TIMES_PROCESSED+"' "
+" and nc.operation_bo is null";
ncresults = executeQuery(sql);
User | Count |
---|---|
108 | |
12 | |
11 | |
6 | |
5 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.