cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow: EPM-create-sub-process handler

Valued Contributor
Valued Contributor

Hi everybody,

 

when I use the handler: EPM-create-sub-process I need to exclude all type of datasets and only work on the "stylesheet"

 

For this moment I use this:

 

- template: NAME OF SUBWORKFLOW

- from_attach: target

- to_attach: target

-exclude_types: UGMASTER, UGPART

But with this solution, I need to insert all types I have into the arguement "exclude_types"

 

Have you a solution to work on it? (With the relation or other idea?)

 

Thank you for your help

 

 

PLM Technical IT
9 REPLIES

Re: Workflow: EPM-create-sub-process handler

Legend
Legend

Hello,

 

I think you can give argument for exclude_type as Dataset like below

 

-emplate: NAME OF SUBWORKFLOW
- from_attach: target
- to_attach: target
-exclude_types: Dataset

 

This excludes all subtypes of Dataset too.

 

I m not sure what you mean by 'exclude all type of datasets and only work on the "stylesheet"'.

Are you referring to stylesheet as a type of dataset which you want to consider?

 

Regards

Mahendra

Re: Workflow: EPM-create-sub-process handler

Valued Contributor
Valued Contributor

Hello Mahendra,

 

thank you for your answer. I test it now and I can say, it doesn't work.

 

Invalid argument.

 

Have you another idea?

 

Thank you

PLM Technical IT

Re: Workflow: EPM-create-sub-process handler

Legend
Legend
Could you please share the list of probable object types that can be in targets when this handler is being executed.
And also share what you intend to include and exclude as the targets of the sub process.
So that i can give the right combination of arguments for the handler

Regards
Mahendra

Re: Workflow: EPM-create-sub-process handler

Valued Contributor
Valued Contributor

First I will explain my first issue why I will exclude some datasets. Perhaps, my idea to remove datasets into the targets is wrong.

 

My idea is to delete this information into the "Form" when a ReviewTask step is refuse :

 

RI.png

 

I will start a sub-workflow (Easily to manage in our lot of workflow).

 

2017-11-08_11h26_49.png

 

If I delete the "-Exclude-types" handler and start a workflow on an item with datasets (UGMaster example). I have this error message:

2017-11-08_11h30_52.png

PLM Technical IT

Re: Workflow: EPM-create-sub-process handler

Legend
Legend
where are these 6 attributes defined?
Are these defined on the Item or Item Revision or Master forms or a custom form attached to the target object?

Regards
Mahendra

Re: Workflow: EPM-create-sub-process handler

Solution Partner Legend Solution Partner Legend
Solution Partner Legend

I think the fundamental problem here is that you first have to understand where the 6 properties, bus4_approver_name, bus4_approver_data, bus4_norm, bus4_norm_date, bus4_supervisor_name, and bus4_supervisor_date, are defined.

 

If you're looking at these on the summary tab of the item revision, it's most likely they are defined on the item revision, not on the item revision master form. If they are, you have to make sure the item revision is the target of the subworkflow.

 

If the properties are really defined on the item revision master form, you have to make sure the master form is the target of the subworkflow.

Arden Bedell | Teamcenter Wonk | Applied CAx, LLC

Re: Workflow: EPM-create-sub-process handler

Valued Contributor
Valued Contributor

I'm still "junior" on BMIDE! But in the printscreen I do, for me the attributes are defined on ItemRevision.

 

 

2017-11-09_09h23_40.png

 

How I can work with your experience?

PLM Technical IT

Re: Workflow: EPM-create-sub-process handler

Legend
Legend

Hello,

 

As all your 6 properties are defined on COTS type ItemRevision itself.

Try with below combination.

 

EPM-create-sub-process
-template = SUB: Clear Release Information
-from_attach = Target
-to_attach = Target
-include_type = ItemRevision

 

Instead of using exclude_type argument, include_type argument can be used to include only ItemRevision (or any of its subtypes) for the subprocess.

 

Regards

Mahendra

 

Re: Workflow: EPM-create-sub-process handler

Valued Contributor
Valued Contributor

Hello everybody,

 

Thank you, the last solution works fine! and in the same time, I understand how it's works

PLM Technical IT