Process Chain - ABAP to ABAP Process types link with EVENTS

Question: Hi

I have 5 ABAP PROCES TYPES(programs) linked one after another.
Currently if one fails I cant start another untill I repair first.
Basically i want EVENT-ALWAYS to be available between all the ABAP process types ,how do I get it.
we can get in all other Process types ,how to get for ABAP process types


thanks

Answer:
Hello

Its SAD no takers for these??

Answer:
Create you own process type. Here's how:
- In RSPC, go to Settings->Maintain Process Types
- Click on New Entries
- Fill the fields: ProcessType = 'ZWHATEVER'; ObjectTypeName = CL_RSPC_ABAP; Object Type = ABAP OO Class; Possible events = process ends "successful" or "incorrect"; Process Category = 98.
- Save
- Go back to your chain
- In the Process Types tree, you'll see a process type ZWHATEVER.
- Drag it into your chain
- Create a variant as always, and enter your ABAP program
- Use it as an ABAP Process Type, except that now you have green or red links.

Enjoy!
_________________
Leandro,

Tuly Idiots Shadow Supporter

Answer:
Hey lhowlin,

will this work as simple as that?

I ask this, because a colleague explained me a similar approach once, but i'm missing one step in your list (in compariosn to his approach): don't you need to communicate to the process chain what should be considered as green or red? He told me something about a certain parameter that you needed to read into memory in the ABAP program so that you can communicate GREEN or RED to the process chain...

Answer:
Hi TFR,
lhowlin steps works awesome.
I had done it in my previous assignments.
the catch here is
ObjectTypeName = CL_RSPC_ABAP
Object Type = ABAP OO Class &
Process Category = 98.
Rest remains the same as we normally create CUSTOM Process types

Hope it Helps !!!
_________________
Chetan
@ CP...

Answer:
Dear all
I am learning process chain.
I have tried to find documentsrelated to this topic.
How can i really learn this topic.
Are there any good topics on this if any please tell me.
Waiting for the response
Thanks in Advance
Regards
Rose

Answer:
Tnx for the feedback Chetan.

I still have 1 question: how will the RED en GREEN then be determined. IS it a siple as "if program runs without error till the end, it will be GREEN" and "if program dumps, it will give RED" ?

This would already be an improvement in comparison with the standard functionality where a dump in the program stops your chain entirely, but it would still miss something: it could be interesting to have a program giving a RED light in the Process Chain although it didn't dump (e.g. is there was a sy-subrc = 4) and that would not be possible if the above is true...

Answer:
Tnx for the feedback Chetan.

I still have 1 question: how will the RED en GREEN then be determined. IS it a siple as "if program runs without error till the end, it will be GREEN" and "if program dumps, it will give RED" ?

This would already be an improvement in comparison with the standard functionality where a dump in the program stops your chain entirely, but it would still miss something: it could be interesting to have a program giving a RED light in the Process Chain although it didn't dump (e.g. is there was a sy-subrc = 4) and that would not be possible if the above is true...


Welcome anytime TFR,
It depends on Individual Process types turning Red or Green.

Process type gets Red when job fails for any reason.
Process type gets GREEN when job is successful.

If in the chain you have 5 process types and the 3rd gets RED (job fails or short dump) then the Process chain stops on process type 3 untill you FIX the JOB and then RESTART from 3 to continue further.

Hope it Helps
_________________
Chetan
@ CP...

Answer:
TFR you're right... to some extent.
If you do only the steps I posted, the result is as simple as this:
- If the ABAP short dumps, the process is red
- Otherwise, it's green.
If you want to set it to red without a short dump, you'll need to do some additional steps, ie:
- Implement the ABAP OO class for the defined process type
- Implement the code for determining the end status in method IF_RSPC_EXECUTE
- There, set parameter e_state to 'G' or 'R' depending on your logic.
There's a detailed how-to paper in SDN describing this. It's called "How to... implement custom-defined process type".
_________________
Leandro,

Tuly Idiots Shadow Supporter
Copyright ?2007 - 2008 www.jt77.com