Abinitio Publish to Plan | Graph calling plan - How graph can call/comm...
Conduct It > - Graph calling plan - How graph can call/communicate plan
Publisher - Subscriber - Pub Sub mechanism in Abinitio
Please view my video as below:
There are 2 ways where we can fit in Publish to plan mechanism
1. Batch Graph -> Subscribe Looping Plan
2. Publisher -> Subscribe Looping Plan
1. Batch Graph -> Subscribe Looping Plan are below:
a. Create a Plan named as "$AI_PALN/mysubscriber.plan"
b. Add Subplan in "$AI_PALN/mysubscriber.plan" and Make it Looping plan - Subscribe Loop plan
c.. Create New Graph named "$AI_MP/plan_to_sbscribe.mp" and build as it as below-:
Create Data -> Reformat -> Publish to Plan
count=10
out::create(index)=
begin
out.plan_name:1:if(index==0) "a.pset";
out.plan_name:2:if(index==1) "b.pset";
out.plan_name:3:if(index==2) "c.pset";
out.plan_name:4:if(index==3) "d.pset";
out.plan_name:5:if(index==4) "e.pset";
out.plan_name:6:if(index==5) "f.pset";
out.plan_name:7:if(index==6) "g.pset";
out.plan_name:8:if(index==7) "h.pset";
out.plan_name:9:if(index==8) "i.pset";
out.plan_name:10:if(index==9)"j.pset";
end;
Reformat - out.*::in.*;
Publish to Plan
subscribe_loop = /MySubplan
d. Add Graph Task in "$AI_PALN/mysubscriber.plan" and call the graph "$AI_MP/plan_to_sbscribe.mp"
e. Open the properties of Subplan of point#2 ,Properties-> Loop Type=Subscribeloop
Open the Subplan
Add graph task in the Subplan (Subscribeloop)
Open properties->graph=$AI_PSET/AB_PALN_LOOP_CURRENT_VALUE
please see the diagram below:
2. Publisher -> Subscribe Looping Plan
Subscribe -> Reformat -> Publish to Plan
Subscribe -> Reformat ->Publisher (Into Queue)
Subscribe to Queue -> Publish to Plan
Please visit our other channel for peace and meditation:
Comments
Post a Comment