declare
p_spcs_prcs_id number;
begin
p_spcs_prcs_id := flow_api_pkg.flow_create(pi_dgrm_name => '测试工作流001',
pi_prcs_name => '随便起一个');
dbms_output.put_line('p_spcs_prcs_id:' || p_spcs_prcs_id);
end;
begin
-- start process
flow_api_pkg.flow_start(p_process_id => 17);
end;
select * from FLOW_SUBFLOWS where SBFL_CURRENT = 'Activity_Test_001';
begin
flow_api_pkg.flow_next_step(p_process_id => 17,
p_subflow_id => 29,
p_forward_route => null);
end;
select * from FLOW_SUBFLOWS where SBFL_CURRENT = 'Activity_Test_002';
begin
flow_api_pkg.flow_next_step(p_process_id => 17,
p_subflow_id => 29,
p_forward_route => null);
end;
==============================================================================================