Skip to main content
Solved

How to Make Sure a Python Caller ran First and Finish the job before Starting Other Part of Script

  • March 20, 2023
  • 6 replies
  • 39 views

bhk
Contributor
Forum|alt.badge.img+3
  • Contributor
  • 7 replies

I have a disconnected Python Caller which is suppose to do some data cleaning in target dataset before Reading data from source and writing them into Target

 

Can you please let me know how I can make a sequence here before reading the data from source to ran and do the job of Python Caller First?

 

image 

I tried to connect/put the Python caller before Reader but as you know where is no way to add it before reader , out of the box

 

Thanks

Best answer by hkingsbury

You need to connect the output port of the python caller to the initiator port of the feature reader

image

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

6 replies

hkingsbury
Celebrity
Forum|alt.badge.img+63
  • Celebrity
  • 1620 replies
  • March 20, 2023

Use the output of your python caller to trigger a feature reader. Replacing the reader with this feature reader will then only read the source data once the python is finished


bhk
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • 7 replies
  • March 20, 2023

Thanks for quick reply hkingsbury but can you please let me know where I can set the output of python caller to trigger a feature reader?

imageWhen I click on Output what I am seeing is this window without any option to select the reader

 


hkingsbury
Celebrity
Forum|alt.badge.img+63
  • Celebrity
  • 1620 replies
  • Best Answer
  • March 20, 2023

You need to connect the output port of the python caller to the initiator port of the feature reader

image


david_r
Celebrity
  • 8391 replies
  • March 21, 2023

+1 for the answer by @hkingsbury​ . I'll just add that you probably want to add a Creator before the PythonCaller, in case that isn't obvious.


hkingsbury
Celebrity
Forum|alt.badge.img+63
  • Celebrity
  • 1620 replies
  • March 21, 2023

+1 for the answer by @hkingsbury​ . I'll just add that you probably want to add a Creator before the PythonCaller, in case that isn't obvious.

Good point 😛


bhk
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • 7 replies
  • March 21, 2023

Thank you guys both, and you are right David, Creator is needed too