gerry-baird / grump

1 stars 2 forks source link

process-name in config.yaml #1

Open tomotagwork opened 2 years ago

tomotagwork commented 2 years ago

Hello, Could you please let me know what value has to be set to "proces-name" in config.yaml? https://github.com/gerry-baird/grump/blob/ccb1f91169f0cba2e082a57945428bbac3f93f50/config.yaml#L7

For example, I tired to the following configuration.

project: HSS
process-name: Hiring Sample

Then the following URL is generated in grump.py script. https://host:port/rest/bpm/wle/v1/processes/search?Hiring Sample&projectFilter=HSS&limit=500

It seems "process-name" value is not used as a query parameter value. I think the URL generation logic is not correct. https://github.com/gerry-baird/grump/blob/ccb1f91169f0cba2e082a57945428bbac3f93f50/grump.py#L95

Reference: https://www.ibm.com/docs/en/baw/20.x?topic=search-get

Thanks.

gerry-baird commented 2 years ago

Hi, I pushed a version late last week that only uses the process-name when building the search. I suggest you try this. If the search URL doesn't work for your environment you can build it differently, just check the apI docs to see what is possible and try it in the RPA test tool. Also, I plan to update the code to allow grump to run for longer, currently the connections timeout after 5mins. Good luck and let me know if you are successful...

tomotagwork commented 2 years ago

Hi thank you for your response. I think "process-name" is not used as a filter. For example, I tried to set "abc", which does not exist in BAW, to process-name in config.yaml. Then I can get csv file, but it seems it includes data for all processes on BAW. Previous version of grump.py is better for me because at least "project"(project acronymn) is valid as a filter.

Thanks.