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

Community Tip - New to the community? Learn how to post a question and get help from PTC and industry experts! X

Lifecycle/Workflow expression robot question

RandyJones
20-Turquoise

Lifecycle/Workflow expression robot question

I have a basic lifecycle defined named Engineering that is used for
epm documents. When a document is at a released state and is revised
it goes to "In Work". After the revision is completed, checked in, and
approved either via a change notice, or promotion request the document
is put back to the released state.

We have a 3rd party MRP software that we want to notify when a part number
goes to the "In Work" state and also notify when the part number is
approved back to the release state.

I have a java class written that will do this notification to the 3rd
party mrp system. What I need help with is some tips on how to get the
lifecycle to actually use this class when the document goes to
"In Work" and again when the document goes back to released.

I have played around a little bit by copying my existing basic life cycle
and turning this copy into an advanced life cycle in order to have work
flows. In the "In Work" phase of the advanced lifecycle I have created
simple workflows for the phase process and the gate process.

The simple workflows are like this:
Start -> Expression Robot -> End

The expression robot is simply a "System.out.println("here at workflow");
just to see if anything is happening.

However after assigning this advanced life cycle to an epmdocument and
revising I have no output in the Windchill log files.

So I asking for some tips/pointers on where to go from here.

Thanks
--
3 REPLIES 3

Folder Subscriptions can be generated for these events for an EPM Doc in a folder.

If you had all such objects in a selected folder, and could use the result of the subscription notifications somehow on the ERP side, you wouldn't need the class. Can be implemented in 30 seconds.

On 03/05/10 12:18, Lockwood,Mike,IRVINE,R&D wrote:
> Folder Subscriptions can be generated for these events for an EPM Doc in a folder.
>
> If you had all such objects in a selected folder, and could use the result of the subscription notifications somehow on the ERP side, you wouldn't need the class.  Can be implemented in 30 seconds.

Interesting idea however in our case these objects are not all in the same
folder or even the same product.


--

I have made a huge leap in solving this problem!

>
> However after assigning this advanced life cycle to an epmdocument and
> revising I have no output in the Windchill log files.

Above is my problem. I assigned an object to the new advanced life cycle
however the OIR is still using the old basic life cycle so when I created
the revision the new objects were created using the old life cycle... 😞
Which I discovered after adding the "Life Cycle Template" column to the view.

So after changing my existing basic life cycle to an advanced and adding
the workflows to the phase and gate of the "In Work" I am now getting the
output I expected to see in the log files. 🙂

>
> So I asking for some tips/pointers on where to go from here.
>
> Thanks


Thanks for all the tips and help so far. I will probably be back asking for
more help before this task is completely finished.

Thanks
--
Announcements


Top Tags