If you created and installed a function package already, and now you want to add a new function to this existing package, then these are the steps to follow:
- create the new function from Resilient web
- remove customize.py and setup.py from the existing function package
- run codegen again to pull the original function(s) and the new function(s)
- most importantly, re-install your function package. The change in setup.py only takes effect after you re-install your function package. Most likely, this means uninstalling and installing your function package.
If you forget the last step, your new functions would not get called. An empty dictionary will be returned to the workflow.
------------------------------
Yongjian Feng
------------------------------