29: OPEN c;
30: FETCH c INTO item_key;
31: CLOSE c;
32:
33: wf_engine.CreateProcess(
34: itemtype => item_type,
35: itemkey => item_key,
36: process => 'IMPORT_PROCESS');
37:
34: itemtype => item_type,
35: itemkey => item_key,
36: process => 'IMPORT_PROCESS');
37:
38: wf_engine.SetItemAttrNumber(
39: itemtype => item_type,
40: itemkey => item_key,
41: aname => 'NUM_WORKERS',
42: avalue => to_char(workers));
40: itemkey => item_key,
41: aname => 'NUM_WORKERS',
42: avalue => to_char(workers));
43:
44: wf_engine.SetItemAttrNumber(
45: itemtype => item_type,
46: itemkey => item_key,
47: aname => 'REQUEST_ID',
48: avalue => to_char(who_request_id));
46: itemkey => item_key,
47: aname => 'REQUEST_ID',
48: avalue => to_char(who_request_id));
49:
50: wf_engine.StartProcess(
51: itemtype => item_type,
52: itemkey => item_key);
53:
54: RETURN item_key;