What are the difference between IDs specified in blue and red rectangles below? Is there are a way to retrieve those id's dynamically in WFs?
The ID beside the workflow job refers to the job id (workflow instance id) created for the fulfillment workflow named 'Manual Activities'. The ID here refers to the Job ID (Image 2) of whole workflow job(Image 1) that you see below for example. (Refers to columns PROCI_ID:PROCI_DB in the WP_PROCI table)
The ID beside the name manual fulfillment refers to the ID of the activity created from the node 'Manual Fulfillment' in the above workflow. (It refers to column ACTI_ID in WP_ACTI table). You can get this activity ID from the nodeID (below image) which can be seen on Manual Fulfillment node's Runtime Data. (select acti_id from wp_proci_node where proci_node_id = ? (NodeId value))
Retrieving data ...