LabView task priority and concurrent tasks on Win2K
When doing some number crunching with LabVIEW, my program is
using all CPU time on my Win2K desktop. Even when I have some
other programs running in the background (like setiathome...)
with the same taskpriority as LabVIEW, LabVIEW is using all the
CPU time for its calculations. Normally it should share the
CPU with all other tasks of the same priority, as I understand
the task scheduling of Windows. Why doesn't work LabVIEW this way?
> When doing some number crunching with LabVIEW, my program is
> using all CPU time on my Win2K desktop. Even when I have some
> other programs running in the background (like setiathome...)
> with the same taskpriority as LabVIEW, LabVIEW is using all the
> CPU time for its calculations. Normally it should share the
> CPU with all other tasks of the same priority, as I understand
> the task scheduling of Windows. Why doesn't work LabVIEW this way?
LV does work that way. By default the execution takes place in threads
that are the same priority as the LV process. If the LV process is
lowered in priority, so are its threads, and vice versa. It is possible
to set LV threads to be a few priority marks above or below this, so one
thing to check is to see wh
at the priority of the VI is set to.
Also, Seti may always decide to execute in threads that are a lower
priority than its process. It is possible to set process priorities to
try and better balance these out, if that is your goal.
Greg McKaskle
Similar Messages
-
Hi
When I close a .pdf file in Adobe Reader the program continues to run on the CPU until I go into the Task Manager and End Task.
I am running Windows 8 with Adobe Reader Ver 11.0.07, I have uninstalled the reader and reinstalled also checked for updates and ask the program to check the installation, which it did with no change I still have the problem ?.
PeterHi Peter,
Please check the performance by disabling the 'Protected mode' in Reader.
Edit > Preferences > Security (Enhanced) > Enable Protected Mode at startup
Uncheck this option. Click on Ok.
Close and launch Reader and check.
Ref.: http://helpx.adobe.com/acrobat/kb/protected-mode-troubleshooting-reader.html
Regards,
Rave -
Task priority and background properties...
Is it possible to set a task priority, as we can with System.Threading.Threads?
What about the background concept of a thread (IsBackground property)?Yesterday I talked to a collegue that has a specific use for task priorities.
He has a service that perform tasks that come in at a fairly high rate. He lets the ThreadPool to manage when things get executed. This worked fine in the beginning.
Then users started complaining that the system was too slow. The problem is that user submitted work is added to the ThreadPool along with "system" tasks. He needed a way to indicate the user submitted work takes priority over all other tasks.
His solution was to fix the max thread count of the pool to 1 less than the number of processors and to process user tasks on a seperate thread. His thinking is that user tasks are guaranteed to have a waiting processor to do the work.
Although this solved the problem most of the time it did create two new problems: 1. all other tasks have fewer threads to do thier work...so they are slower. 2. user submitted tasks are essentially convoyed to a single thread. they block each other.
I think his solution is a bit wacky. The question is: can Parallel Extentions deal with this better? -
Task response and dependent task on response mapping
Hi All,
I am using OIM 10g. I was wondering if anybody has a query which gives task response vs dependent task on response mapping.
For example if Tasks A's response is Success C then on that I will run Task B so the query should return all these three element.
Thanks in advance.Hi,
You can use this query as per you requirement,
select pkg.pkg_name, mil.mil_name, rsc.rsc_data, rsc.sta_key, sta.sta_status, sta.sta_bucket, mil2.mil_name
from pkg pkg, tos tos, mil mil, mil mil2, rsc rsc, sta sta, rgm rgm
where pkg.pkg_key = tos.pkg_key
and tos.tos_key = mil.tos_key
and mil.mil_key = rsc.mil_key
and rsc.sta_key = sta.sta_key
and rgm.rsc_key = rsc.rsc_key
and rgm.mil_key = mil2.mil_key
and pkg.pkg_name = 'Exchange' -- Your application name
order by pkg.pkg_name, mil.mil_name, rsc.rsc_data, sta.sta_status, mil2.mil_name.
Thanks,
Kuldeep -
Setup windows and ConfigMgr task sequence failing.
Hi,
Am trying to create a reference Windows 7 task sequence and the task sequence is failing at the 'Setup Windows and ConfigMgr' task.
There are a lot of threads regarding this step and in particular that as the machine is in a workgroup it cannot install the SCCM client successfully. As recommended on other posts have added SMSLP= and SMSMP= into the Installation properties.
The task sequence is still failing and am unable to make much of the logs.
Will post the errors if anyone can assist?.<![LOG[Microsoft Deployment Toolkit version: 6.1.2373.0]LOG]!><time="09:48:18.771+00" date="12-02-2013" component="InstallSoftware" context="" type="1" thread="1104" file="runcommandline.cpp:34">
<![LOG[The task sequencer log is located at X:\windows\TEMP\SMSTSLog\SMSTS.LOG. For task sequence failures, please consult this log.]LOG]!><time="09:48:18.771+00" date="12-02-2013" component="InstallSoftware" context="" type="1" thread="1104"
file="runcommandline.cpp:34">
<![LOG[Unable to copy log to the network as no SLShare value was specified.]LOG]!><time="09:48:18.771+00" date="12-02-2013" component="InstallSoftware" context="" type="1" thread="1104" file="runcommandline.cpp:34">
<![LOG[No system restore needed, WMI object not present.]LOG]!><time="09:48:18.771+00" date="12-02-2013" component="InstallSoftware" context="" type="1" thread="1104" file="runcommandline.cpp:34">
<![LOG[Cleaning up default wallpaper registry keys]LOG]!><time="09:48:18.771+00" date="12-02-2013" component="InstallSoftware" context="" type="1" thread="1104" file="runcommandline.cpp:34">
<![LOG[zticopylogs processing completed successfully.]LOG]!><time="09:48:18.771+00" date="12-02-2013" component="InstallSoftware" context="" type="1" thread="1104" file="runcommandline.cpp:34">
<![LOG[Unable to create WebService class]LOG]!><time="09:48:18.771+00" date="12-02-2013" component="InstallSoftware" context="" type="1" thread="1104" file="runcommandline.cpp:34">
<![LOG[Command line returned 0]LOG]!><time="09:48:18.771+00" date="12-02-2013" component="InstallSoftware" context="" type="1" thread="1104" file="runcommandline.cpp:565">
<![LOG[Process completed with exit code 0]LOG]!><time="09:48:18.771+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="commandline.cpp:1123">
<![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="09:48:18.771+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="instruction.cxx:3012">
<![LOG[Successfully completed the action (Copy Logs) with the exit win32 code 0]LOG]!><time="09:48:18.771+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="instruction.cxx:3038">
<![LOG[MP server http://UK5SYSDBPR01.s3ms.com. Ports 80,443. CRL=false.]LOG]!><time="09:48:18.771+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="utils.cpp:5300">
<![LOG[Setting authenticator]LOG]!><time="09:48:18.787+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="utils.cpp:5322">
<![LOG[Set authenticator in transport]LOG]!><time="09:48:18.787+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="libsmsmessaging.cpp:7751">
<![LOG[Sending StatusMessage]LOG]!><time="09:48:18.787+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="libsmsmessaging.cpp:4025">
<![LOG[Setting message signatures.]LOG]!><time="09:48:18.803+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="libsmsmessaging.cpp:1297">
<![LOG[Setting the authenticator.]LOG]!><time="09:48:18.803+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="libsmsmessaging.cpp:1327">
<![LOG[CLibSMSMessageWinHttpTransport::Send: URL: UK5SYSDBPR01.s3ms.com:80 CCM_POST /ccm_system/request]LOG]!><time="09:48:18.803+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="libsmsmessaging.cpp:8621">
<![LOG[Request was succesful.]LOG]!><time="09:48:18.818+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="libsmsmessaging.cpp:8956">
<![LOG[Set a global environment variable _SMSTSLastActionRetCode=0]LOG]!><time="09:48:18.818+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="executionenv.cxx:668">
<![LOG[Set a global environment variable _SMSTSLastActionSucceeded=true]LOG]!><time="09:48:18.818+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="executionenv.cxx:668">
<![LOG[Expand a string: %_SMSTSMDataPath%\Logs]LOG]!><time="09:48:18.818+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="executionenv.cxx:782">
<![LOG[Clear local default environment]LOG]!><time="09:48:18.834+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="executionenv.cxx:807">
<![LOG[Updated security on object C:\_SMSTaskSequence.]LOG]!><time="09:48:18.896+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="utils.cpp:1121">
<![LOG[Set a global environment variable _SMSTSNextInstructionPointer=140]LOG]!><time="09:48:18.896+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="executionenv.cxx:668">
<![LOG[Set a TS execution environment variable _SMSTSNextInstructionPointer=140]LOG]!><time="09:48:18.896+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="executionenv.cxx:386">
<![LOG[Set a global environment variable _SMSTSInstructionStackString=134]LOG]!><time="09:48:18.896+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="executionenv.cxx:668">
<![LOG[Set a TS execution environment variable _SMSTSInstructionStackString=134]LOG]!><time="09:48:18.896+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="executionenv.cxx:414">
<![LOG[Save the current environment block]LOG]!><time="09:48:18.896+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="executionenv.cxx:833">
<![LOG[Successfully save execution state and environment to local hard disk]LOG]!><time="09:48:18.943+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="engine.cxx:255">
<![LOG[Start executing an instruction. Instruction name: Error in the task sequence. Instruction pointer: 140]LOG]!><time="09:48:18.959+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="engine.cxx:117">
<![LOG[Set a global environment variable _SMSTSCurrentActionName=Error in the task sequence]LOG]!><time="09:48:18.959+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="executionenv.cxx:668">
<![LOG[Set a global environment variable _SMSTSNextInstructionPointer=140]LOG]!><time="09:48:18.959+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="executionenv.cxx:668">
<![LOG[Set a local default variable SMSTSDisableWow64Redirection]LOG]!><time="09:48:18.959+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="executionenv.cxx:700">
<![LOG[Set a local default variable _SMSTSRunCommandLineAsUser]LOG]!><time="09:48:18.959+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="executionenv.cxx:700">
<![LOG[Set a global environment variable _SMSTSLogPath=X:\windows\TEMP\SMSTSLog]LOG]!><time="09:48:18.959+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="executionenv.cxx:668">
<![LOG[Expand a string: smsswd.exe /run: cscript "%deployroot%\scripts\ztierrormsg.wsf"]LOG]!><time="09:48:18.959+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="executionenv.cxx:782">
<![LOG[Expand a string: ]LOG]!><time="09:48:18.959+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="executionenv.cxx:782">
<![LOG[Command line for extension .exe is "%1" %*]LOG]!><time="09:48:18.959+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="commandline.cpp:228">
<![LOG[Set command line: smsswd.exe /run: cscript "%deployroot%\scripts\ztierrormsg.wsf"]LOG]!><time="09:48:18.959+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="commandline.cpp:731">
<![LOG[Start executing the command line: smsswd.exe /run: cscript "%deployroot%\scripts\ztierrormsg.wsf"]LOG]!><time="09:48:18.959+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="instruction.cxx:2930">
<![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="09:48:18.959+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="instruction.cxx:2959">
<![LOG[Expand a string: WinPEandFullOS]LOG]!><time="09:48:18.959+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="executionenv.cxx:782">
<![LOG[Executing command line: smsswd.exe /run: cscript "%deployroot%\scripts\ztierrormsg.wsf"]LOG]!><time="09:48:18.959+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="commandline.cpp:827">
<![LOG[[ smsswd.exe ]]LOG]!><time="09:48:18.974+00" date="12-02-2013" component="InstallSoftware" context="" type="1" thread="2000" file="main.cpp:289">
<![LOG[PackageID = '']LOG]!><time="09:48:18.974+00" date="12-02-2013" component="InstallSoftware" context="" type="1" thread="2000" file="main.cpp:318">
<![LOG[BaseVar = '', ContinueOnError='']LOG]!><time="09:48:18.974+00" date="12-02-2013" component="InstallSoftware" context="" type="1" thread="2000" file="main.cpp:319">
<![LOG[ProgramName = 'cscript "C:\_SMSTaskSequence\WDPackage\scripts\ztierrormsg.wsf"']LOG]!><time="09:48:18.974+00" date="12-02-2013" component="InstallSoftware" context="" type="1" thread="2000" file="main.cpp:320">
<![LOG[SwdAction = '0001']LOG]!><time="09:48:18.974+00" date="12-02-2013" component="InstallSoftware" context="" type="1" thread="2000" file="main.cpp:321">
<![LOG[Set command line: Run command line]LOG]!><time="09:48:18.974+00" date="12-02-2013" component="InstallSoftware" context="" type="0" thread="2000" file="commandline.cpp:731">
<![LOG[Working dir 'not set']LOG]!><time="09:48:18.974+00" date="12-02-2013" component="InstallSoftware" context="" type="1" thread="2000" file="runcommandline.cpp:542">
<![LOG[Executing command line: Run command line]LOG]!><time="09:48:18.974+00" date="12-02-2013" component="InstallSoftware" context="" type="1" thread="2000" file="commandline.cpp:827">
<![LOG[Process completed with exit code 2147500037]LOG]!><time="09:48:19.037+00" date="12-02-2013" component="InstallSoftware" context="" type="1" thread="2000" file="commandline.cpp:1123">
<![LOG[Microsoft (R) Windows Script Host Version 5.8]LOG]!><time="09:48:19.037+00" date="12-02-2013" component="InstallSoftware" context="" type="1" thread="2000" file="runcommandline.cpp:34">
<![LOG[Copyright (C) Microsoft Corporation. All rights reserved.]LOG]!><time="09:48:19.037+00" date="12-02-2013" component="InstallSoftware" context="" type="1" thread="2000" file="runcommandline.cpp:34">
<![LOG[]LOG]!><time="09:48:19.037+00" date="12-02-2013" component="InstallSoftware" context="" type="1" thread="2000" file="runcommandline.cpp:34">
<![LOG[Microsoft Deployment Toolkit version: 6.1.2373.0]LOG]!><time="09:48:19.037+00" date="12-02-2013" component="InstallSoftware" context="" type="1" thread="2000" file="runcommandline.cpp:34">
<![LOG[The task sequencer log is located at X:\windows\TEMP\SMSTSLog\SMSTS.LOG. For task sequence failures, please consult this log.]LOG]!><time="09:48:19.037+00" date="12-02-2013" component="InstallSoftware" context="" type="1" thread="2000"
file="runcommandline.cpp:34">
<![LOG[ZTI deployment failed, Return Code = -2147467259 0x80004005]LOG]!><time="09:48:19.037+00" date="12-02-2013" component="InstallSoftware" context="" type="1" thread="2000" file="runcommandline.cpp:34">
<![LOG[Unable to create WebService class]LOG]!><time="09:48:19.037+00" date="12-02-2013" component="InstallSoftware" context="" type="1" thread="2000" file="runcommandline.cpp:34">
<![LOG[Command line returned 2147500037]LOG]!><time="09:48:19.037+00" date="12-02-2013" component="InstallSoftware" context="" type="1" thread="2000" file="runcommandline.cpp:565">
<![LOG[Process completed with exit code 2147500037]LOG]!><time="09:48:19.037+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="commandline.cpp:1123">
<![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="09:48:19.037+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="instruction.cxx:3012">
<![LOG[Failed to run the action: Error in the task sequence.
Unspecified error (Error: 80004005; Source: Windows)]LOG]!><time="09:48:19.037+00" date="12-02-2013" component="TSManager" context="" type="3" thread="1048" file="instruction.cxx:3103">
<![LOG[MP server http://UK5SYSDBPR01.s3ms.com. Ports 80,443. CRL=false.]LOG]!><time="09:48:19.037+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="utils.cpp:5300">
<![LOG[Setting authenticator]LOG]!><time="09:48:19.052+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="utils.cpp:5322">
<![LOG[Set authenticator in transport]LOG]!><time="09:48:19.052+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="libsmsmessaging.cpp:7751">
<![LOG[Sending StatusMessage]LOG]!><time="09:48:19.068+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="libsmsmessaging.cpp:4025">
<![LOG[Setting message signatures.]LOG]!><time="09:48:19.068+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="libsmsmessaging.cpp:1297">
<![LOG[Setting the authenticator.]LOG]!><time="09:48:19.068+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="libsmsmessaging.cpp:1327">
<![LOG[CLibSMSMessageWinHttpTransport::Send: URL: UK5SYSDBPR01.s3ms.com:80 CCM_POST /ccm_system/request]LOG]!><time="09:48:19.068+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="libsmsmessaging.cpp:8621">
<![LOG[Request was succesful.]LOG]!><time="09:48:19.083+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="libsmsmessaging.cpp:8956">
<![LOG[Set a global environment variable _SMSTSLastActionRetCode=-2147467259]LOG]!><time="09:48:19.083+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="executionenv.cxx:668">
<![LOG[Set a global environment variable _SMSTSLastActionSucceeded=false]LOG]!><time="09:48:19.083+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="executionenv.cxx:668">
<![LOG[Clear local default environment]LOG]!><time="09:48:19.083+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="executionenv.cxx:807">
<![LOG[Let the parent group (Gather Logs and StateStore on Failure) decides whether to continue execution]LOG]!><time="09:48:19.083+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="instruction.cxx:3212">
<![LOG[The execution of the group (Gather Logs and StateStore on Failure) has failed and the execution has been aborted. An action failed.
Operation aborted (Error: 80004004; Source: Windows)]LOG]!><time="09:48:19.083+00" date="12-02-2013" component="TSManager" context="" type="3" thread="1048" file="instruction.cxx:2425">
<![LOG[Failed to run the last action: Error in the task sequence. Execution of task sequence failed.
Unspecified error (Error: 80004005; Source: Windows)]LOG]!><time="09:48:19.083+00" date="12-02-2013" component="TSManager" context="" type="3" thread="1048" file="engine.cxx:214">
<![LOG[MP server http://UK5SYSDBPR01.s3ms.com. Ports 80,443. CRL=false.]LOG]!><time="09:48:19.099+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="utils.cpp:5300">
<![LOG[Setting authenticator]LOG]!><time="09:48:19.099+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="utils.cpp:5322">
<![LOG[Set authenticator in transport]LOG]!><time="09:48:19.099+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="libsmsmessaging.cpp:7751">
<![LOG[Sending StatusMessage]LOG]!><time="09:48:19.115+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="libsmsmessaging.cpp:4025">
<![LOG[Setting message signatures.]LOG]!><time="09:48:19.115+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="libsmsmessaging.cpp:1297">
<![LOG[Setting the authenticator.]LOG]!><time="09:48:19.115+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="libsmsmessaging.cpp:1327">
<![LOG[CLibSMSMessageWinHttpTransport::Send: URL: UK5SYSDBPR01.s3ms.com:80 CCM_POST /ccm_system/request]LOG]!><time="09:48:19.115+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="libsmsmessaging.cpp:8621">
<![LOG[Request was succesful.]LOG]!><time="09:48:19.146+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="libsmsmessaging.cpp:8956">
<![LOG[Executing command line: X:\windows\system32\cmd.exe /k]LOG]!><time="09:48:26.618+00" date="12-02-2013" component="TSBootShell" context="" type="1" thread="744" file="bootshell.cpp:857">
<![LOG[The command completed successfully.]LOG]!><time="09:48:26.618+00" date="12-02-2013" component="TSBootShell" context="" type="1" thread="744" file="bootshell.cpp:939">
<![LOG[Successfully launched command shell.]LOG]!><time="09:48:26.618+00" date="12-02-2013" component="TSBootShell" context="" type="1" thread="744" file="bootshell.cpp:430">
<![LOG[Execution::enExecutionFail != m_eExecutionResult, HRESULT=80004005 (e:\nts_sccm_release\sms\client\tasksequence\tsmanager\tsmanager.cpp,866)]LOG]!><time="10:03:31.818+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048"
file="tsmanager.cpp:866">
<![LOG[Task Sequence Engine failed! Code: enExecutionFail]LOG]!><time="10:03:31.818+00" date="12-02-2013" component="TSManager" context="" type="3" thread="1048" file="tsmanager.cpp:866">
<![LOG[****************************************************************************]LOG]!><time="10:03:31.818+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="tsmanager.cpp:889">
<![LOG[Task sequence execution failed with error code 80004005]LOG]!><time="10:03:31.818+00" date="12-02-2013" component="TSManager" context="" type="3" thread="1048" file="tsmanager.cpp:890">
<![LOG[Cleaning Up.]LOG]!><time="10:03:31.818+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="tsmanager.cpp:637">
<![LOG[Removing Authenticator]LOG]!><time="10:03:31.818+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="tsmanager.cpp:648">
<![LOG[shKey.DeleteValue( c_szRegValue_SecurityToken ), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\ccmutillib\ccmutillib.cpp,1652)]LOG]!><time="10:03:31.818+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="ccmutillib.cpp:1652">
<![LOG[Cleaning up task sequence folder]LOG]!><time="10:03:31.818+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="utils.cpp:1746">
<![LOG[Unable to delete file C:\_SMSTaskSequence\TSEnv.dat (0x80070005). Continuing.]LOG]!><time="10:03:32.692+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="ccmfile.cpp:1056">
<![LOG[hr, HRESULT=80070091 (e:\nts_sccm_release\sms\framework\core\ccmcore\ccmfile.cpp,1218)]LOG]!><time="10:03:32.863+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="ccmfile.cpp:1218">
<![LOG[Failed to delete directory 'C:\_SMSTaskSequence']LOG]!><time="10:03:32.863+00" date="12-02-2013" component="TSManager" context="" type="2" thread="1048" file="ccmfile.cpp:1218">
<![LOG[(dwRet = ::SetNamedSecurityInfoW ((WCHAR*) pszObjectName, objectType, OWNER_SECURITY_INFORMATION, pOwnerSID, NULL, NULL, NULL)) == ERROR_SUCCESS, HRESULT=80070005 (e:\nts_sccm_release\sms\framework\tscore\utils.cpp,6090)]LOG]!><time="10:03:32.863+00"
date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="utils.cpp:6090">
<![LOG[SetNamedSecurityInfo() failed.]LOG]!><time="10:03:32.863+00" date="12-02-2013" component="TSManager" context="" type="3" thread="1048" file="utils.cpp:6090">
<![LOG[SetObjectOwner() failed. 0x80070005.]LOG]!><time="10:03:32.863+00" date="12-02-2013" component="TSManager" context="" type="3" thread="1048" file="utils.cpp:6102">
<![LOG[SetObjectOwner (szFName, SE_FILE_OBJECT, c_szAdministrators), HRESULT=80070005 (e:\nts_sccm_release\sms\framework\tscore\utils.cpp,6187)]LOG]!><time="10:03:32.863+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048"
file="utils.cpp:6187">
<![LOG[RemoveFile() failed for C:\_SMSTaskSequence\TSEnv.dat. 0x80070005.]LOG]!><time="10:03:32.879+00" date="12-02-2013" component="TSManager" context="" type="3" thread="1048" file="utils.cpp:6231">
<![LOG[RemoveDirectoryW failed (0x80070091) for C:\_SMSTaskSequence]LOG]!><time="10:03:32.879+00" date="12-02-2013" component="TSManager" context="" type="2" thread="1048" file="utils.cpp:6315">
<![LOG[Deleting volume ID file C:\_SMSTSVolumeID.7159644d-f741-45d5-ab29-0ad8aa4771ca ...]LOG]!><time="10:03:32.879+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="resolvesource.cpp:519">
<![LOG[DeleteFileW(sVolumeIDFile.c_str()), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\resolvesource.cpp,521)]LOG]!><time="10:03:32.879+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="resolvesource.cpp:521">
<![LOG[Successfully unregistered Task Sequencing Environment COM Interface.]LOG]!><time="10:03:32.879+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="environmentlib.cpp:886">
<![LOG[Command line for extension .exe is "%1" %*]LOG]!><time="10:03:32.879+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="commandline.cpp:228">
<![LOG[Set command line: "X:\sms\bin\x64\TsProgressUI.exe" /Unregister]LOG]!><time="10:03:32.879+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="commandline.cpp:731">
<![LOG[Executing command line: "X:\sms\bin\x64\TsProgressUI.exe" /Unregister]LOG]!><time="10:03:32.879+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="commandline.cpp:827">
<![LOG[==========[ TsProgressUI started in process 1728 ]==========]LOG]!><time="10:03:32.879+00" date="12-02-2013" component="TsProgressUI" context="" type="1" thread="948" file="winmain.cpp:330">
<![LOG[Command line: "X:\sms\bin\x64\TsProgressUI.exe" /Unregister]LOG]!><time="10:03:32.879+00" date="12-02-2013" component="TsProgressUI" context="" type="0" thread="948" file="winmain.cpp:332">
<![LOG[Unregistering COM classes]LOG]!><time="10:03:32.879+00" date="12-02-2013" component="TsProgressUI" context="" type="1" thread="948" file="winmain.cpp:204">
<![LOG[Unregistering class objects]LOG]!><time="10:03:32.879+00" date="12-02-2013" component="TsProgressUI" context="" type="1" thread="948" file="winmain.cpp:495">
<![LOG[Shutdown complete.]LOG]!><time="10:03:32.879+00" date="12-02-2013" component="TsProgressUI" context="" type="1" thread="948" file="winmain.cpp:512">
<![LOG[Process completed with exit code 0]LOG]!><time="10:03:32.894+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="commandline.cpp:1123">
<![LOG[Successfully unregistered TS Progress UI.]LOG]!><time="10:03:32.894+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="utils.cpp:2320">
<![LOG[g_TSManager.Run(), HRESULT=80004005 (e:\nts_sccm_release\sms\client\tasksequence\tsmanager\tsmanager.cpp,725)]LOG]!><time="10:03:32.894+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="tsmanager.cpp:725">
<![LOG[::RegQueryValueExW(hSubKey, szReg, NULL, NULL, NULL, &dwSize), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\utils.cpp,261)]LOG]!><time="10:03:32.894+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048"
file="utils.cpp:261">
<![LOG[RegQueryValueExW failed for Software\Microsoft\SMS\Task Sequence, SMSTSEndProgram]LOG]!><time="10:03:32.894+00" date="12-02-2013" component="TSManager" context="" type="2" thread="1048" file="utils.cpp:261">
<![LOG[GetTsRegValue() failed. 0x80070002.]LOG]!><time="10:03:32.894+00" date="12-02-2013" component="TSManager" context="" type="2" thread="1048" file="utils.cpp:279">
<![LOG[End program: ]LOG]!><time="10:03:32.894+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="tsmanager.cpp:764">
<![LOG[Error Task Sequence Manager failed to execute task sequence. Code 0x80004005]LOG]!><time="10:03:32.894+00" date="12-02-2013" component="TSManager" context="" type="3" thread="1048" file="tsmanager.cpp:768">
<![LOG[Sending error status message]LOG]!><time="10:03:32.894+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="tsmanager.cpp:769">
<![LOG[MP server http://UK5SYSDBPR01.s3ms.com. Ports 80,443. CRL=false.]LOG]!><time="10:03:32.894+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="utils.cpp:5300">
<![LOG[Setting authenticator]LOG]!><time="10:03:32.910+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="utils.cpp:5322">
<![LOG[Set authenticator in transport]LOG]!><time="10:03:32.910+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="libsmsmessaging.cpp:7751">
<![LOG[Sending StatusMessage]LOG]!><time="10:03:32.941+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="libsmsmessaging.cpp:4025">
<![LOG[Setting message signatures.]LOG]!><time="10:03:32.941+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="libsmsmessaging.cpp:1297">
<![LOG[Setting the authenticator.]LOG]!><time="10:03:32.941+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="libsmsmessaging.cpp:1327">
<![LOG[CLibSMSMessageWinHttpTransport::Send: URL: UK5SYSDBPR01.s3ms.com:80 CCM_POST /ccm_system/request]LOG]!><time="10:03:32.941+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="libsmsmessaging.cpp:8621">
<![LOG[Request was succesful.]LOG]!><time="10:03:32.988+00" date="12-02-2013" component="TSManager" context="" type="0" thread="1048" file="libsmsmessaging.cpp:8956">
<![LOG[Finalize logging request ignored from process 1044]LOG]!><time="10:03:32.988+00" date="12-02-2013" component="TSManager" context="" type="1" thread="1048" file="tslogging.cpp:1737">
<![LOG[Process completed with exit code 2147500037]LOG]!><time="10:03:32.988+00" date="12-02-2013" component="TSMBootstrap" context="" type="1" thread="824" file="commandline.cpp:1123">
<![LOG[Task Sequence Manager returned code 0x80004005]LOG]!><time="10:03:32.988+00" date="12-02-2013" component="TSMBootstrap" context="" type="1" thread="824" file="tsmediawizardcontrol.cpp:2136">
<![LOG[ThreadToResolveAndExecuteTaskSequence returned code 0x00000000]LOG]!><time="10:03:33.004+00" date="12-02-2013" component="TSMBootstrap" context="" type="1" thread="988" file="tsmediaresolveprogresspage.cpp:221">
<![LOG[ResolveProgressPage::OnWizardNext()]LOG]!><time="10:03:33.004+00" date="12-02-2013" component="TSMBootstrap" context="" type="0" thread="988" file="tsmediaresolveprogresspage.cpp:113">
<![LOG[Activating Finish Page.]LOG]!><time="10:03:33.004+00" date="12-02-2013" component="TSMBootstrap" context="" type="0" thread="988" file="tsmediafinishpage.cpp:107">
<![LOG[Exiting with return code 0x00000000]LOG]!><time="10:03:33.004+00" date="12-02-2013" component="TSMBootstrap" context="" type="1" thread="988" file="tsmbootstrap.cpp:1195">
<![LOG[Execution complete.]LOG]!><time="10:03:33.019+00" date="12-02-2013" component="TSBootShell" context="" type="1" thread="756" file="bootshell.cpp:690">
<![LOG[hMap != 0, HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\environmentscope.cpp,515)]LOG]!><time="10:03:33.019+00" date="12-02-2013" component="TSBootShell" context="" type="0" thread="756" file="environmentscope.cpp:515">
<![LOG[m_pGlobalScope->open(), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\environmentlib.cpp,337)]LOG]!><time="10:03:33.019+00" date="12-02-2013" component="TSBootShell" context="" type="0" thread="756" file="environmentlib.cpp:337">
<![LOG[this->open(), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\environmentlib.cpp,549)]LOG]!><time="10:03:33.019+00" date="12-02-2013" component="TSBootShell" context="" type="0" thread="756" file="environmentlib.cpp:549">
<![LOG[::RegQueryValueExW(hSubKey, szReg, NULL, NULL, NULL, &dwSize), HRESULT=80070002 (e:\nts_sccm_release\sms\framework\tscore\utils.cpp,261)]LOG]!><time="10:03:33.019+00" date="12-02-2013" component="TSBootShell" context="" type="0" thread="756"
file="utils.cpp:261">
<![LOG[RegQueryValueExW failed for Software\Microsoft\SMS\Task Sequence, SMSTSEndProgram]LOG]!><time="10:03:33.019+00" date="12-02-2013" component="TSBootShell" context="" type="2" thread="756" file="utils.cpp:261">
<![LOG[GetTsRegValue() failed. 0x80070002.]LOG]!><time="10:03:33.019+00" date="12-02-2013" component="TSBootShell" context="" type="2" thread="756" file="utils.cpp:279">
<![LOG[End program: ]LOG]!><time="10:03:33.019+00" date="12-02-2013" component="TSBootShell" context="" type="1" thread="756" file="bootshell.cpp:722">
<![LOG[Finalizing logging from process 740]LOG]!><time="10:03:33.019+00" date="12-02-2013" component="TSBootShell" context="" type="1" thread="756" file="tslogging.cpp:1741">
<![LOG[Finalizing logs to root of first available drive]LOG]!><time="10:03:33.019+00" date="12-02-2013" component="TSBootShell" context="" type="1" thread="756" file="tslogging.cpp:1583">
<![LOG[Successfully finalized logs to C:\SMSTSLog]LOG]!><time="10:03:33.035+00" date="12-02-2013" component="TSBootShell" context="" type="1" thread="756" file="tslogging.cpp:1640">
<![LOG[Cleaning up task sequencing logging configuration.]LOG]!><time="10:03:33.035+00" date="12-02-2013" component="TSBootShell" context="" type="0" thread="756" file="tslogging.cpp:584"> -
I need tutorials to help me configure and get task list.
hello,
In my current use case scenario i would have to do simple task like fetch TASK list and MODIFY A Human Task.
I plan to use the wsdl <oracle_home>\bpel\system\services\schema
It would be great if we have some good links to get started.
Thanks,
SunI am using workflow API to develop the use cases and this code seems to work.
import java.util.ArrayList;
import java.util.List;
import org.apache.log4j.Logger;
import oracle.bpel.services.workflow.client.IWorkflowServiceClient;
import oracle.bpel.services.workflow.client.WorkflowServiceClientFactory;
import oracle.bpel.services.workflow.query.ITaskQueryService;
import com.oracle.services.bpel.task.Task;
import oracle.bpel.services.workflow.repos.Ordering;
import oracle.bpel.services.workflow.repos.Predicate;
import oracle.bpel.services.workflow.repos.TableConstants;
import oracle.bpel.services.workflow.task.ITaskService;
import oracle.bpel.services.workflow.verification.IWorkflowContext;
public class TaskImpl {
private static org.apache.log4j.Logger log = Logger
.getLogger(TaskImpl.class);
public void getTask(){
System.out.println(" classpath : " + System.getProperty("java.class.path") );
try {
//Create JAVA WorflowServiceClient
IWorkflowServiceClient wfSvcClient =
WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.SOAP_CLIENT);
//Get the task query service
ITaskQueryService querySvc = wfSvcClient.getTaskQueryService();
//Login as jcooper, jstein or jcooper or weblogic
IWorkflowContext ctx = querySvc.authenticate("weblogic",
"weblogic",
null, //Use default realm
null);//Not logging in on behalf of another user
//Set up list of columns to query
List queryColumns = new ArrayList();
queryColumns.add("TASKID");
queryColumns.add("TASKNUMBER");
queryColumns.add("TITLE");
queryColumns.add("OUTCOME");
//Create a predicate to query tasks that have a null outcome
String outcome = null;
Predicate predicate = new Predicate(TableConstants.WFTASK_OUTCOME_COLUMN,
Predicate.OP_EQ,
outcome);
//Create an ordering to order tasks by task number
Ordering ordering = new Ordering(TableConstants.WFTASK_TASKNUMBER_COLUMN
,true //Ascending order
,false //Nulls last
//Query a list of tasks assigned to jstein
List tasks = querySvc.queryTasks(ctx,
queryColumns,
null, //Do not query additional info
ITaskQueryService.ASSIGNMENT_FILTER_MY,
null, //No keywords
predicate, //Only tasks with no outome set
ordering, //Order by ascending task number
0, //Do not page the query result
0);
//Get the task service
ITaskService taskSvc = wfSvcClient.getTaskService();
//Loop over the tasks, outputting task information, and approving tasks
for(int i = 0 ; i < tasks.size() ; i ++)
Task task = (Task)tasks.get(i);
int taskNumber = Integer.parseInt(task.getTaskId());
String title = task.getTitle();
String taskId = task.getTitle();
//Set the outcome
taskSvc.updateTaskOutcome(ctx,taskId,"APPROVED");
System.out.println("Task #"+taskNumber+" ("+title+") is APPROVED");
catch (Exception e)
//Handle any exceptions raised here...
System.out.println("Caught workflow exception: "+e.getMessage());
} -
Automatic assoc between task metadata and the taskflow app url is missing
We have a BPEL human task. Created a taskflow based on this human task.
We have one Admin server and one managed server(SOA).
Deployed the human task on managed server and then deployed the taskflow on Admin server. Didn't see any errors in both deployments.
We are not able to see the 'automatic association is created between the task metadata and the task flow application URL' which will be created as per the point 29.8.6, http://docs.oracle.com/cd/E17904_01/integration.1111/e10224/bp_designtf.htm#BDCDBJBD.
Please give some pointers.
Thanks,
Mahesh
Edited by: user773275 on Apr 11, 2012 12:43 AMHi,
Open the TASKFLOW_PROJ_DIR\adfmsrc\hwtaskflow.xml file.
For each additional human task, add the following element inside the file (at the bottom just before </hwTaskFlows>):
<hwTaskFlow>
<WorkflowName>$TASK_NAME</WorkflowName>
<TaskDefinitionNamespace>$TASK_NAMESPACE</TaskDefinitionNamespace>
<TaskFlowId>$TASK_FLOW_NAME</TaskFlowId>
<TaskFlowFileName>$TASK_FLOW_FILENAME</TaskFlowFileName>
</hwTaskFlow
where:
$TASK_NAME is replaced with the name of the human task inside the .task file (value of the <name> element).
$TASK_NAMESPACE is replaced with the namespace of the human task inside the .task file (value of the attribute targetNameSpace of element <taskDefinition>).
$TASK_FLOW_NAME is copied from the existing <hwTaskFlow>/<TaskFlowId> element.
$TASK_FLOW_FILENAME is copied from the existing <hwTaskFlow>/<TaskFlowFileName> element.
Redeploy the project.
In the above we attach the Task located on your composite to the application form
Arik -
Query to grouping on task priority for each employee
Hi All,
We have following table structure for employee, task & taskallocation.
CREATE TABLE EMP
( "EMP_ID" NUMBER(10,0) NOT NULL ENABLE,
"FNAME" NVARCHAR2(50) NOT NULL ENABLE,
"LNAME" NVARCHAR2(50) NOT NULL ENABLE
CREATE TABLE TASKS
( "TASK_ID" NUMBER(10,0) NOT NULL ENABLE,
"TASK_PRIORITY" NVARCHAR2(10) NOT NULL ENABLE
CREATE TABLE TASKSALLOCATION
( "TASKALLOCATION_ID" NUMBER(10,0) NOT NULL ENABLE,
"EMP_ID" NUMBER(10,0) NOT NULL ENABLE,
"TASK_ID" NUMBER(10,0) NOT NULL ENABLE
The data for the same will be as follows
Insert into EMP (EMP_ID,FNAME,LNAME) values (1,'XYZ','DFD');
Insert into EMP (EMP_ID,FNAME,LNAME) values (2,'DFDS','FD');
Insert into EMP (EMP_ID,FNAME,LNAME) values (3,'FDSF','GFH');
Insert into EMP (EMP_ID,FNAME,LNAME) values (6,'GFHGF','GFHS');
Insert into EMP (EMP_ID,FNAME,LNAME) values (4,'GFD','FDG');
Insert into EMP (EMP_ID,FNAME,LNAME) values (5,'DSFDS','FDSAF');
Insert into EMP (EMP_ID,FNAME,LNAME) values (7,'GHGY','EWE');
Insert into EMP (EMP_ID,FNAME,LNAME) values (8,'FGRFSAD','SADF');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (1,'HIGH');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (2,'MEDIUM');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (3,'LOW');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (4,'HIGH');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (5,'MEDIUM');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (6,'LOW');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (7,'HIGH');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (8,'MEDIUM');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (9,'LOW');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (10,'HIGH');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (11,'MEDIUM');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (12,'LOW');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (13,'HIGH');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (14,'MEDIUM');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (15,'LOW');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (16,'HIGH');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (17,'MEDIUM');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (18,'LOW');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (19,'HIGH');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (20,'MEDIUM');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (21,'LOW');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (22,'HIGH');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (23,'MEDIUM');
Insert into TASKS (TASK_ID,TASK_PRIORITY) values (24,'LOW');
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (1,1,1);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (2,2,1);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (3,3,2);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (4,3,3);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (5,4,4);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (6,4,5);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (7,4,6);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (8,4,7);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (9,5,6);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (10,6,8);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (11,7,9);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (12,8,8);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (13,8,10);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (14,8,11);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (15,8,12);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (16,6,13);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (17,5,14);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (18,3,12);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (19,3,13);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (20,2,15);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (21,1,16);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (22,2,17);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (23,1,18);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (24,4,19);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (25,6,20);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (26,5,21);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (27,1,22);
Insert into TASKSALLOCATION (TASKALLOCATION_ID,EMP_ID,TASK_ID) values (28,3,23);
COMMIT;And we are looking count of tasks based grouping on it's priority per employee. Something like this,
Resultset
with
t as
select 'XYZ DFD' as EMP_NAME, 3 as HIGH , 0 as MEDIUM, 1 as LOW FROM dual union all
select 'DFDS FD' , 1 , 1 , 1 FROM dual union all
select 'FDSF GFH' , 1 , 2 , 2 FROM dual union all
select 'GFHGF GFHS' , 3 , 1 , 1 FROM dual union all
select 'GFD FDG' , 0 , 1 , 2 FROM dual union all
select 'DSFDS FDSAF' , 1 , 2 , 0 FROM dual union all
select 'GHGY EWE' , 0 , 0 , 1 FROM dual union all
select 'FGRFSAD SADF' , 1 , 2 , 1 FROM dual)Note : We are using Oracle 11.2.0.2.0 versionHi,
select emp.fname || ' ' || emp.lname EMP_NAME
, sum(case when tasks.TASK_PRIORITY = 'HIGH' then 1 else 0 end) HIGH
, sum(case when tasks.TASK_PRIORITY = 'MEDIUM' then 1 else 0 end) MEDIUM
, sum(case when tasks.TASK_PRIORITY = 'LOW' then 1 else 0 end) LOW
from emp
join TASKSALLOCATION
on emp.EMP_ID = TASKSALLOCATION.EMP_ID
join TASKS
on TASKSALLOCATION.TASK_ID = tasks.TASK_ID
group by emp.fname || ' ' || emp.lname
EMP_NAME HIGH MEDIUM LOW
FGRFSAD SADF 1 2 1
XYZ DFD 3 0 1
GHGY EWE 0 0 1
GFHGF GFHS 1 2 0
GFD FDG 3 1 1
DFDS FD 1 1 1
FDSF GFH 1 2 2
DSFDS FDSAF 0 1 2Regards
Martin Preiss -
How to merge request and dependent task
Hello,
I would like to merge some TOs generate during the last month and I see than I have some object which are missing because they are only present in tasks.
Is it possible to choose all objects contains in requests and dependant tasks when we have only the requests number?
Thanks for your answers
Regards,
Nico.Tasks are designed to be run once. If you want restart functionality, use a service:
http://docs.oracle.com/javafx/2/api/javafx/concurrent/Service.html
The sample service I posted in the following thread demonstrates how to do this:
Multithreading
Use of Executors is not necessary as a Service encapsulates the execution thread management (though you can set your own executor on the service if you really needed it). All you need to do is make use of the service start, cancel, restart and reset methods as required. If you do use the cancel method, then you need to make sure that your service is properly interrupt aware for the cancel to function as you expect. -
Dinamic priority of human task
hi! this is my question, i have a Human Task Activity in my BPEL process, this task is started with priority 3, i need to change the priority to 2 when passed n minutes without user response, this is posible? i add an onAlarm to the Human Task scope and change the priority but it does not work.
Another question, can i route the task to another user when the 2 minutes period passed? how can i do that? in the Human Task configuration i can scalate the task but i need to re-route to others users n times with a period expiration condition.
Any help will be appreciated
regards and blesses!Human Tasks have "Escalate After " feature built-in. In the human task editor, you can specify the escalation time (either fixed or as variable -based on an expression) in the "Expiration and Escalation Policy" section. Refer to : http://download-west.oracle.com/docs/cd/B31017_01/integrate.1013/b28981/workflow.htm#BABDDIAJ
You can then use one of the callback from the Human Task to update the task's priority or assign it to different users.
Hope that helps.
Regards,
Sidda. -
Concurrent Task/Service Exception
Olá! How can I get the exception raised on a concurrent Task/Service class?
I have this Service:
private Service<Void> myService = new Service<Void>() {
@Override
protected Task createTask() {
return new Task<Void>() {
@Override
protected Void call() throws Exception {
throw new Exception("Hello, exception!");
};And this initialize function:
@Override
public void initialize(URL url, ResourceBundle resourceBundle) {
myService.stateProperty().addListener(new ChangeListener<State>() {
@Override
public void changed(ObservableValue<? extends State> ov, State t, State t1) {
System.out.println("state.changed " + t1);
myService.exceptionProperty().addListener(new ChangeListener<Throwable>() {
@Override
public void changed(ObservableValue<? extends Throwable> ov, Throwable t, Throwable t1) {
t1.printStackTrace();
}I call the Service this way:
@FXML
protected void myButtonAction(ActionEvent event) {
myService.start();
}Finally, the output is:
state.changed SCHEDULED
state.changed RUNNING
And the function silently stops at the point of the exception.
There's a way to get the exception raised?
Thanks,
Victor (Brazil)
PS: b42.
Edited by: Victor on 05/09/2011 07:32Hi Victor,
This is unfortunately a bug in the Asynch implementation at the moment. Seems a fix is due in b43: http://javafx-jira.kenai.com/browse/RT-15612
In the interim, I am using a dodgy little hack. I create my own Service base class like so:
private Service<Void> myService = new Service<Void>() {
private Throwable lastException;
@Override
protected Task createTask() {
return new Task<Void>() {
@Override
protected Void call() throws Exception {
lastException = null;
try {
// do background task as normal
catch (Throwable t) {
lastException = t;
};Then your initialise looks something like:
@Override
public void initialize(URL url, ResourceBundle resourceBundle) {
myService.stateProperty().addListener(new ChangeListener<State>() {
@Override
public void changed(ObservableValue<? extends State> ov, State t, State t1) {
if (t1 == Worker.State.SUCCEEDED) {
if (myService.getException() != null) {
// do success
} else {
// do failure with myService.getException()
}If you go for this, t's worth creating a base class that hides this cludge, then when b43 is released you have less refactoring to do.
Enjoy,
zonski -
How can we modify the Task Priority in BPM workspace???
How can we modify the Task Priority in BPM workspace??? Is it possible?? If so what is the best and easy way to implement this??
Hi Chandra,
First please find the job name in SM37 for FIGL and check the job status to be in "released" status. Select that job and go to job menu and click on change. then it will take you to the job screen where you have "job class". Here you can change the job class to "A" to get to high priority.
If you are unable to edit the job then create a new job with the same variants by clicking STEP button in the Job screen.
Try these steps, let me know if are able to do so.
Regards,
Ravi Kanth -
I want to do something simple:
GUI thread -> Kick of background task which runs in background thread.
Background task completes -> triggers callback in GUI thread
The new beta build, b36, has javafx.concurrent.Task, which should support this. I can't find any documentation or sample code on this, and I can't infer from the API signature how to achieve this.
I've posted this same question on Richard Blair's article on this subject, but no one has responded and the article itself has out of date code snippets and also doesn't address the callback issue.Using Richard's previous documentation and NetBeans I could make a simple service + task for loading a file in background:
private void openFileAsync(final File file) {
final PlotRepLoaderService repLoaderService = new PlotRepLoaderService(file);
repLoaderService.stateProperty().addListener(new ChangeListener<State>() {
* {@inheritDoc}
@Override
public void changed(ObservableValue<? extends State> observable, State oldValue, State newValue) {
if (newValue == State.SUCCEEDED) {
// Setup display.
Rep plotRep = repLoaderService.getValue();
PlotRepPane plotRepPane = new PlotRepPane(plotRep);
root.setCenter(plotRepPane);
repLoaderService.start();
* Service which loads plot.rep file asynchronously.
* @author Fabrice Bouyé ([email protected])
public class PlotRepLoaderService extends Service<Rep> {
private File file;
public PlotRepLoaderService(File file) {
this.file = file;
* {@inheritDoc}
@Override
protected Task<Rep> createTask() {
return new Task<Rep>() {
* {@inheritDoc}
@Override
protected Rep call() throws Exception {
System.out.printf("Reading file \"%s\"", file.getAbsolutePath()).println();
Rep plotRep = RepReader.read(file);
return plotRep;
* {@inheritDoc}
@Override
protected void done() {
System.out.println("done()");
}Originally I tried to listen to change in the workDoneProperty but found out it is never called so I guess I am missing a bit of gearwork in my task (which I'll discover when documents & samples are posted) or maybe it's a bug:
repLoaderService.workDoneProperty().addListener(new ChangeListener<Number>() {
* {@inheritDoc}
@Override
public void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {
System.out.printf("workDone %f -> %f", oldValue, newValue);
}); -
How to change task priority?
How to change task priority? Task has been created and user claim it. TaskManager do not have method to change priority
That is exactly how I did it. I did have a space after the 10, and I dragged the application to the terminal window, and it responded with the "Not found" error message.
I will try the renice when I get home tonight. At work I am using Windows 2000 and Lotus notes (AAAArrrrgh!). I also support 4 PDP-11s and 6 antique VAX systems and an old Stratus.
I have renamed the title of my position to "Paleocybernetic Systems Administrator". -
What is difference between ADF Task Flow and Faces-Config - when delpoy ?
What is difference between ADF Task Flow and Faces-Config? When I create navigation between pages with ADF task flow then the navigation don't work when I deploy my application to Weblogic 10.3. When I use default server then navigation works fine. With Faces_config in both situations all works ok - on Stanalone server and default.
Where is the problem?
Best regards!Shay, I don't use both faces-config and adf task flow! When I failed with task flow I tried faces-config.
I have active on my weblogic - adf.oracle.domain(1.0,11.1.1.0.0). This is the right ADF? If yes then where is the problem?
Best regards!
Maybe you are looking for
-
Camera Roll and Voice Memos not automatically moving to iTunes or new computer
Hello! Two weeks ago, my old computer (a 5-6 year old Windows Vista) broke and I spent a week saving everything that meant anything to me. We bought Windows 8 shortly after, and I began to set up my new itunes library, (much to my dismay - why is the
-
Jabber - Search for phone Numbers (extensions)
Hi there, as on the old Cisco Personal Communicator there was a possibillity to search for extension numbers on the search field. If I enter an extension number on the Jabber Client on Windows, there is no Name and Picture shown from this employee. F
-
Handling unit deletion in delivery
Hi Can any one help us on how to unpack and delete HU from Outbound delivery? When we go through VL02N and do the unpacking and delete the HU and try to save that, system is giving the error message: Within the delivery, posting change not possible f
-
IPad2 problem with operating speed.
Hi! Like in subject. After updating to iOS 8.1.1 my iPad2 work very slow. I restore system but problem with operating speed still there. Regards Jacek
-
Java Applet: Caching data in User HDD?
Hi, I'm trying to write a java applet which requires approximately 700K of mathematical data everytime it runs. One way to do this is to download those data off from server everytime the applet starts up, but it seems terribly inefficient for me cuz