1 package org.enhydra.shark.api.client.wfservice; 2 3 import org.enhydra.shark.api.client.wfbase.BaseException; 4 import org.enhydra.shark.api.SharkTransaction; 5 6 import org.enhydra.shark.api.client.wfmodel.*; 7 8 import java.util.Map ; 9 10 21 public interface ExecutionAdministration { 22 23 37 void connect (String userId, String password,String engineName,String scope) throws BaseException, ConnectFailed; 38 39 54 void connect (SharkTransaction t,String userId, String password,String engineName,String scope) throws BaseException, ConnectFailed; 55 56 64 void disconnect () throws BaseException, NotConnected; 65 66 75 void disconnect (SharkTransaction t) throws BaseException, NotConnected; 76 77 88 WfProcessMgrIterator get_iterator_processmgr () throws BaseException, NotConnected; 89 90 102 WfProcessMgrIterator get_iterator_processmgr (SharkTransaction t) throws BaseException, NotConnected; 103 104 117 WfProcessMgr[] get_sequence_processmgr (int max_number) throws BaseException, NotConnected; 118 119 133 WfProcessMgr[] get_sequence_processmgr (SharkTransaction t,int max_number) throws BaseException, NotConnected; 134 135 136 146 Map getLoggedUsers () throws BaseException, NotConnected; 147 148 160 Map getLoggedUsers (SharkTransaction t) throws BaseException, NotConnected; 161 162 172 WfResourceIterator get_iterator_resource () throws BaseException, NotConnected; 173 174 185 WfResourceIterator get_iterator_resource (SharkTransaction t) throws BaseException, NotConnected; 186 187 197 WfResource[] get_sequence_resource (int max_number) throws BaseException, NotConnected; 198 199 210 WfResource[] get_sequence_resource (SharkTransaction t,int max_number) throws BaseException, NotConnected; 211 212 224 void startActivity (String procId,String blockActIdString,String actDefId) throws BaseException, NotConnected; 225 226 239 void startActivity (SharkTransaction t,String procId,String blockActIdString,String actDefId) throws BaseException, NotConnected; 240 241 251 WfProcessMgr getProcessMgr (String name) throws BaseException, NotConnected; 252 253 264 WfProcessMgr getProcessMgr (SharkTransaction t,String name) throws BaseException, NotConnected; 265 266 277 WfProcessMgr getProcessMgr (String pkgId,String pDefId) throws BaseException, NotConnected; 278 279 291 WfProcessMgr getProcessMgr (SharkTransaction t,String pkgId,String pDefId) throws BaseException, NotConnected; 292 293 294 306 WfProcessMgr getProcessMgr (String pkgId,String pkgVer,String pDefId) throws BaseException, NotConnected; 307 308 321 WfProcessMgr getProcessMgr (SharkTransaction t,String pkgId,String pkgVer,String pDefId) throws BaseException, NotConnected; 322 323 333 Map getProcessMgrInputSignature(String name) throws BaseException, NotConnected; 334 335 346 Map getProcessMgrInputSignature(SharkTransaction t,String name) throws BaseException, NotConnected; 347 348 359 Map getProcessMgrInputSignature(String pkgId,String pDefId) throws BaseException, NotConnected; 360 361 373 Map getProcessMgrInputSignature(SharkTransaction t,String pkgId,String pDefId) throws BaseException, NotConnected; 374 375 376 388 Map getProcessMgrInputSignature(String pkgId,String pkgVer,String pDefId) throws BaseException, NotConnected; 389 390 403 Map getProcessMgrInputSignature(SharkTransaction t,String pkgId,String pkgVer,String pDefId) throws BaseException, NotConnected; 404 405 415 WfResource getResource (String username) throws BaseException, NotConnected; 416 417 428 WfResource getResource (SharkTransaction t,String username) throws BaseException, NotConnected; 429 430 440 WfProcess getProcess (String procId) throws BaseException, NotConnected; 441 442 453 WfProcess getProcess (SharkTransaction t,String procId) throws BaseException, NotConnected; 454 455 465 Object getProcessContext(String procId, String variableName) throws BaseException, NotConnected; 466 467 478 Object getProcessContext(SharkTransaction t,String procId, String variableName) throws BaseException, NotConnected; 479 480 490 Map getProcessContext(String procId, String [] variableNames) throws BaseException, NotConnected; 491 492 503 Map getProcessContext(SharkTransaction t,String procId, String [] variableNames) throws BaseException, NotConnected; 504 505 516 WfActivity getActivity (String procId,String actId) throws BaseException, NotConnected; 517 518 530 WfActivity getActivity (SharkTransaction t,String procId,String actId) throws BaseException, NotConnected; 531 532 543 Object getActivityContext(String procId,String actId, String variableName) throws BaseException, NotConnected; 544 545 557 Object getActivityContext(SharkTransaction t,String procId,String actId, String variableName) throws BaseException, NotConnected; 558 559 570 Map getActivityContext(String procId,String actId, String [] variableNames) throws BaseException, NotConnected; 571 572 584 Map getActivityContext(SharkTransaction t,String procId,String actId, String [] variableNames) throws BaseException, NotConnected; 585 586 598 WfAssignment getAssignment (String procId,String actId,String username) throws BaseException, NotConnected; 599 600 613 WfAssignment getAssignment (SharkTransaction t,String procId,String actId,String username) throws BaseException, NotConnected; 614 615 631 WfAssignment getAssignment (String procId,String assId) throws BaseException, NotConnected; 632 633 648 WfAssignment getAssignment (SharkTransaction t,String procId,String assId) throws BaseException, NotConnected; 649 650 658 void reevaluateAssignments () throws BaseException, NotConnected; 659 660 669 void reevaluateAssignments (SharkTransaction t) throws BaseException, NotConnected; 670 671 680 void reevaluateAssignments (String pkgId) throws BaseException, NotConnected; 681 682 692 void reevaluateAssignments (SharkTransaction t,String pkgId) throws BaseException, NotConnected; 693 694 705 void reevaluateAssignments (String pkgId,String pDefId) throws BaseException, NotConnected; 706 707 719 void reevaluateAssignments (SharkTransaction t,String pkgId,String pDefId) throws BaseException, NotConnected; 720 721 733 void reevaluateAssignments (String pkgId,String pDefId,String aDefId) throws BaseException, NotConnected; 734 735 748 void reevaluateAssignments (SharkTransaction t,String pkgId,String pDefId,String aDefId) throws BaseException, NotConnected; 749 750 757 void deleteClosedProcesses () throws BaseException, NotConnected; 758 759 767 void deleteClosedProcesses (SharkTransaction t) throws BaseException, NotConnected; 768 769 778 String [] deleteClosedProcesses (int procPerTrans, int failures2ignore) throws BaseException, NotConnected; 779 780 788 void deleteClosedProcesses (java.util.Date closedBefore) throws BaseException, NotConnected; 789 790 799 void deleteClosedProcesses (SharkTransaction t,java.util.Date closedBefore) throws BaseException, NotConnected; 800 801 810 void deleteClosedProcesses (String pkgId) throws BaseException, NotConnected; 811 812 822 void deleteClosedProcesses (SharkTransaction t,String pkgId) throws BaseException, NotConnected; 823 824 833 void deleteClosedProcessesForMgr (String mgrName) throws BaseException, NotConnected; 834 835 845 void deleteClosedProcessesForMgr (SharkTransaction t,String mgrName) throws BaseException, NotConnected; 846 847 858 String [] deleteClosedProcessesForMgr (String mgrName, int procPerTrans, int failures2ignore) throws BaseException, NotConnected; 859 860 870 void deleteClosedProcessesWithVersion (String pkgId,String pkgVer) throws BaseException, NotConnected; 871 872 883 void deleteClosedProcessesWithVersion (SharkTransaction t,String pkgId,String pkgVer) throws BaseException, NotConnected; 884 885 886 896 void deleteClosedProcesses (String pkgId,String pDefId) throws BaseException, NotConnected; 897 898 909 void deleteClosedProcesses (SharkTransaction t,String pkgId,String pDefId) throws BaseException, NotConnected; 910 911 919 void deleteClosedProcess (String procId) throws BaseException, NotConnected; 920 921 930 void deleteClosedProcess (SharkTransaction t,String procId) throws BaseException, NotConnected; 931 932 937 WfAssignmentIterator get_iterator_assignment() throws NotConnected, BaseException; 938 WfAssignmentIterator get_iterator_assignment(SharkTransaction t) throws NotConnected, BaseException; 939 940 941 946 WfProcessIterator get_iterator_process() throws NotConnected, BaseException; 947 WfProcessIterator get_iterator_process(SharkTransaction t) throws NotConnected, BaseException; 948 949 954 WfActivityIterator get_iterator_activity() throws NotConnected, BaseException; 955 WfActivityIterator get_iterator_activity(SharkTransaction t) throws NotConnected, BaseException; 956 } 957 | Popular Tags |