HomeArticlesSlideshowsAsk BobLogin or Register
NewsCustom SearchContactLinks
SIMPLETASK API REFERENCE - Package BWTA_OPER
HEAP WORKFLOW
11-Aug-2013
BWTA_OPER is an active API in the form of oracle PL/SQL package. It is designed as a basic layer of API allowing active manipulation with tasks in their runtime within the SIMPLETASK solution.
See: SIMPLETASK API REFERENCE - Views
See: SIMPLETASK API REFERENCE - Package BWTA_METADATA

BWTA_OPER.startRound Starts batch process for specified effective date and Heap
P_EFFECTIVE_DATEINDATE Effective date of round, if omit then current day will be considered
P_HEAPINNUMBER Number of batch, if omit then the default batch -1 will be used
P_THREADSININTEGER Number of threads - parallel processes - the heap will be processed
BWTA_OPER.startDailyRound Starts daily process (in row) so if last run round was 2013-02-01, the current will be 2013-02-02
P_HEAPINNUMBER Number of batch, if omit then the default batch -1 will be used
P_THREADSININTEGER Number of threads - parallel processes - the heap will be processed
BWTA_OPER.addThreads Adds new threads for specified or last round running
P_THREADSININTEGER Number of threads - parallel processes - to be added
P_ROUNDINNUMBER Sequence of round. If omit last round considered
BWTA_OPER.remThreads removes sleeping threads from specified or last round
P_THREADSININTEGER Number of threads - parallel processes - to be removed
P_ROUNDINNUMBER Sequence of round. If omit last round considered
BWTA_OPER.restartTask Restarts specified process after it is suspended or an error is fixed
P_TASK_IDINVARCHAR2 ID of task to be restarted
P_HEAPINNUMBER Sequence of heap
P_FORCEINBOOLEAN Restart even done task to be ran again
BWTA_OPER.wakeupThread Wakes up sleeping threads immediately not waiting for the Job timing
BWTA_OPER.checkOrphans Checks invalid jobs and threads caused by potential inconsistency between system and metadata
BWTA_OPER.shakeIt Service activity including Orphan checking and Waking up threads
BWTA_OPER.stopTask Stops immediatelly running task
P_TASK_IDINVARCHAR2ID of task to be stopped
P_HEAPININTEGERHeap of the stopped task
BWTA_OPER.stop Stops all running and planed jobs - in standard process it lets all running tasks to be finished
P_IMMEDIATELLYINBOOLEAN Flag of immediate action to stop running tasks too
BWTA_OPER.releaseThreads Restarts threads stopped by the stop or stopHeap method
BWTA_OPER.stopHeap Stops specified Heap
P_HEAPININTEGER Sequence key of Heap
BWTA_OPER.releaseHeap Releases specified heap stopped by the stop or stopHeap method
P_HEAPININTEGER Sequence key of Heap
BWTA_OPER.stopThread Stops specified thread
P_THREADININTEGER Sequence key of Thread
BWTA_OPER.releaseThread Releases stopped thread
P_THREADININTEGER Sequence key of Thread
BWTA_OPER.waitTask Sets task to be waiting
P_IDINVARCHAR2 ID of task
P_HEAPININTEGER Sequence key of Heap
P_ROUNDININTEGER Sequence key of Round
P_DTINDATE Date and time specified the end of waiting
P_MSGINVARCHAR2 The parameter allows to specify Error or Issue message
BWTA_OPER.suspendTask Sets task suspended
P_IDINVARCHAR2 ID of task
P_HEAPININTEGER Sequence key of Heap
P_ROUNDININTEGER Sequence key of Round
P_MSGINVARCHAR2 The parameter allows to specify Error or Issue message
BWTA_OPER.doneTask Sets task to the state DONE
P_IDINVARCHAR2 ID of task
P_HEAPININTEGER Sequence key of Heap
P_ROUNDININTEGER Sequence key of Round
P_MSGINVARCHAR2 The parameter allows to specify Error or Issue message
BWTA_OPER.startGuard Starts the guard job assuring business continuity
BWTA_OPER.stopGuard Stops the guard job assuring business continuity
BWTA_OPER.gatherStatistics Gathers statistics of done tasks average duration
BWTA_OPER.clearStatistics Clears statistics for particular task that allows to selectively delete obsolete statistics in the case things about particular task changed
P_TASK_IDINVARCHAR2 ID of teh task
P_HEAPININTEGER Sequence key of the Heap
BWTA_OPER.manualTask Runs manual action causing surrogate error to make the task wait
P_ACTION_DESCINVARCHAR2Description of the action

Ludek Bob Jankovsky
All Right Reserved © 2007, Designed by Bob Jankovsky