KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > shark > api > internal > working > WfResourceInternal


1 package org.enhydra.shark.api.internal.working;
2
3 import org.enhydra.shark.api.SharkTransaction;
4 import org.enhydra.shark.api.client.wfbase.BaseException;
5 import org.enhydra.shark.api.client.wfmodel.NotAssigned;
6 import org.enhydra.shark.api.internal.working.PersistenceInterface;
7
8 /**
9  * @author Sasa Bojanic
10  * @author Vladimir Puskas
11  */

12 public interface WfResourceInternal extends PersistenceInterface {
13    //int how_many_work_item (SharkTransaction t) throws BaseException;
14
//WfAssignmentInternal[] get_sequence_work_item (SharkTransaction t,int max_number) throws BaseException;
15
//boolean is_member_of_work_items (SharkTransaction t,WfAssignmentInternal member) throws BaseException;
16
String JavaDoc resource_key (SharkTransaction t) throws BaseException;
17    String JavaDoc resource_name (SharkTransaction t) throws BaseException;
18    void release (SharkTransaction t,WfAssignmentInternal from_assigment, String JavaDoc release_info) throws BaseException, NotAssigned;
19    // internal interface
20
void addAssignment (SharkTransaction t,WfAssignmentInternal ass) throws BaseException;
21    void removeAssignment (SharkTransaction t,String JavaDoc procId,String JavaDoc actId) throws BaseException;
22    void restoreAssignment (SharkTransaction t,String JavaDoc mrgName,String JavaDoc procId,String JavaDoc actId,boolean isAccepted) throws BaseException;
23    WfAssignmentInternal getAssignment (SharkTransaction t,String JavaDoc procId,String JavaDoc actId) throws BaseException;
24
25    java.util.List JavaDoc getAssignments (SharkTransaction t) throws BaseException;
26 } // interface WfResource
27

28
Popular Tags