Worklist FYI task is not visible after updating protectednumberattribute2

Hi,
I need you guys help please. The case is that or bpel process is creating a FYI task for user notification where a custom worklist screen is created to retreive FYI tasks for the users.
If any of the FYI task is later updated with the API, the task becomes invisible in the worklist application and also cannot be retreived with the worklist API.
Below is the code for retreiving and updating the task. Its an struts action and the init method is executed the first time to display all tasks.
Later the delete method is invoked and again the init method to see the remaining tasks.
import java.sql.Connection;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import javax.naming.NamingException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import oracle.bpel.services.workflow.IWorkflowConstants;
import oracle.bpel.services.workflow.StaleObjectException;
import oracle.bpel.services.workflow.WorkflowException;
import oracle.bpel.services.workflow.client.IWorkflowServiceClient;
import oracle.bpel.services.workflow.client.WorkflowServiceClientFactory;
import oracle.bpel.services.workflow.query.ITaskQueryService;
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.task.model.Task;
import oracle.bpel.services.workflow.verification.IWorkflowContext;
import org.apache.commons.dbutils.QueryRunner;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.action.DynaActionForm;
@SuppressWarnings( { "unchecked", "deprecation" })
public class Crud extends BaseAction {
     private Log log = LogFactory.getLog(getClass());
     private String getRemoteUser(HttpServletRequest request) {
          boolean isDevMode = Boolean.valueOf(System.getProperty("DEV_MODE"));
          String remoteUser = null;
          if (isDevMode) {
               if ((remoteUser = request.getParameter("remote_user")) != null)
                    request.getSession().setAttribute("remote_user", remoteUser);
               else
                    remoteUser = request.getSession().getAttribute("remote_user").toString();
          if (remoteUser == null)
               remoteUser = request.getHeader("REMOTE-USER");
          return remoteUser;
     public void init(ActionMapping mapping, ActionForm form, HttpServletRequest request,
               HttpServletResponse response) throws WorkflowException {
          log.debug("init");
          IWorkflowServiceClient wfSvcClient = WorkflowServiceClientFactory
                    .getWorkflowServiceClient(WorkflowServiceClientFactory.REMOTE_CLIENT);
          String remoteUser = getRemoteUser(request);
          log.debug("remote user: " + remoteUser);
          IWorkflowContext wfCtx = WorkflowUtils.getWorkflowContextOnBehalf(AppProperties
                    .getProperty("weblogic.username"), AppProperties.getProperty("weblogic.password"),
                    AppProperties.getProperty("identityContext"), remoteUser);
          log.debug(wfCtx.getClass());
          ITaskQueryService querySvc = wfSvcClient.getTaskQueryService();
          // category is CRUD
          Predicate crudPredicate = new Predicate(TableConstants.WFTASK_CATEGORY_COLUMN,
                    Predicate.OP_EQ, "CRUD");
          // should not be a stale task
          crudPredicate.addClause(Predicate.AND,TableConstants.WFTASK_STATE_COLUMN, Predicate.OP_NEQ,
                    IWorkflowConstants.TASK_STATE_STALE);
          log.debug(crudPredicate);
          List queryColumns = new ArrayList();
          queryColumns.add("TASKID");
          queryColumns.add("TASKNUMBER");
          queryColumns.add("TITLE");
          queryColumns.add("PRIORITY");
          queryColumns.add("STATE");
          queryColumns.add("PROTECTEDNUMBERATTRIBUTE1"); // trxTypeId
          queryColumns.add("PROTECTEDNUMBERATTRIBUTE2"); // trxStatus
          queryColumns.add("PROTECTEDTEXTATTRIBUTE1"); // trxNo
          // List optionalInfo = new ArrayList();
          // optionalInfo.add("PAYLOAD");
          Ordering ordering = new Ordering(TableConstants.WFTASK_TITLE_COLUMN, true, true);
          ordering.addClause(TableConstants.WFTASK_PRIORITY_COLUMN, true, true);
          List<Task> tasksList = querySvc.queryTasks(wfCtx, queryColumns, null,
                    ITaskQueryService.ASSIGNMENT_FILTER_MY, null, crudPredicate, ordering, 0, 0);
          request.setAttribute("CRUD_TASKS", tasksList);
          logTaskAttributes(tasksList);
     public void delete(ActionMapping mapping, ActionForm form, HttpServletRequest request,
               HttpServletResponse response) throws WorkflowException, StaleObjectException {
          log.debug("delete");
          DynaActionForm deleteForm = (DynaActionForm) form;
          IWorkflowServiceClient wfSvcClient = WorkflowServiceClientFactory
                    .getWorkflowServiceClient(WorkflowServiceClientFactory.REMOTE_CLIENT);
          ITaskQueryService querySvc = wfSvcClient.getTaskQueryService();
          String remoteUser = getRemoteUser(request);
          log.debug("remote user: " + remoteUser);
          IWorkflowContext wfCtx = WorkflowUtils.getWorkflowContextOnBehalf(AppProperties
                    .getProperty("weblogic.username"), AppProperties.getProperty("weblogic.password"),
                    AppProperties.getProperty("identityContext"), remoteUser);
          log.debug(wfCtx.getClass());
          // category is CRUD
          Predicate crudPredicate = new Predicate(TableConstants.WFTASK_CATEGORY_COLUMN,
                    Predicate.OP_EQ, "CRUD");
          // assigned to the remote user
          crudPredicate.addClause(Predicate.AND, TableConstants.ASSIGNEE_ASSIGNEE_COLUMN,
                    Predicate.OP_EQ, remoteUser);
          // task is assigned
          crudPredicate.addClause(Predicate.AND, TableConstants.WFTASK_STATE_COLUMN, Predicate.OP_EQ,
                    IWorkflowConstants.TASK_STATE_ASSIGNED);
          // trxNo
          crudPredicate.addClause(Predicate.AND,
                    TableConstants.WFTASK_PROTECTEDTEXTATTRIBUTE1_COLUMN, Predicate.OP_EQ, deleteForm
                              .getString("trxNo"));
          // is a draft
          crudPredicate.addClause(Predicate.AND,
                    TableConstants.WFTASK_PROTECTEDNUMBERATTRIBUTE2_COLUMN, Predicate.OP_EQ, Double
                              .valueOf(Constants.TrxTypeId.DRAFT.getTrxTypeId()));
          log.debug(crudPredicate);
          List queryColumns = new ArrayList();
          queryColumns.add("TASKID");
          queryColumns.add("PROTECTEDNUMBERATTRIBUTE1"); // trxTypeId
          queryColumns.add("PROTECTEDNUMBERATTRIBUTE2"); // trxStatus
          queryColumns.add("PROTECTEDTEXTATTRIBUTE1"); // trxNo
          Ordering ordering = new Ordering(TableConstants.WFTASK_TITLE_COLUMN, true, true);
          ordering.addClause(TableConstants.WFTASK_PRIORITY_COLUMN, true, true);
          Task draftTask = null;
          List<Task> tasksList = querySvc.queryTasks(wfCtx, queryColumns, null,
                    ITaskQueryService.ASSIGNMENT_FILTER_MY, null, crudPredicate, ordering, 0, 0);
          logTaskAttributes(tasksList);
          if (tasksList!=null && tasksList.size() > 0)
               draftTask = tasksList.get(0);
          if (draftTask == null)
               return;
          try {
               // settting the task status to Constants.TrxTypeId.DELETED
               log.debug("update from: "
                         + draftTask.getSystemMessageAttributes().getProtectedNumberAttribute2());
               draftTask.getSystemMessageAttributes().setProtectedNumberAttribute2(
                         Double.valueOf(Constants.TrxTypeId.DELETED.getTrxTypeId()));
               wfSvcClient.getTaskService().updateTask(wfCtx, draftTask);
               log.debug("updated to: "
                         + draftTask.getSystemMessageAttributes().getProtectedNumberAttribute2());
               c.commit();
          } catch (Exception e) {
               log.error(e, e);
     private void logTaskAttributes(List<Task> tasksList) {
          // log.debug("task:" + task + " payload: "
          // + (task.getPayload() == null ? "null" :
          // task.getPayload().getContent()));
          log.debug("***********");
          for (Task task : tasksList) {
          log.debug("\ttask owner:" + task.getOwnerUser());
          log.debug("task state:" + task.getSystemAttributes().getState());
          // log.debug("task assigned date:" +
          // task.getSystemAttributes().getAssignedDate());
          log.debug("task status :"
                    + task.getSystemMessageAttributes().getProtectedNumberAttribute2());
          log.debug("task id :" + task.getSystemAttributes().getTaskId());
          log.debug("***********");
Please help,
Regards
Mehdi

Hi ,
  I am executing the WEbservice using WSNAVIGATOR but its not execute , its getting HTML log error as  below..
1-Web service returned error. Fault Code: "(http://schemas.xmlsoap.org/soap/envelope/)Server" Fault String: "Could not retrieve SDO HelperContext for service_id nsn.com/claimbpmproject/PRINVOKE"
2-
HTTP/1.1 500 Internal Server Error
server: SAP NetWeaver Application Server 7.20 / AS Java 7.20
content-type: text/xml; charset=utf-8
date: Sat, 26 Nov 2011 11:40:56 GMT
transfer-encoding: chunked
Set-Cookie: <value is hidden>
2e4
<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>Could not retrieve SDO HelperContext for service_id nsn.com/claimbpmproject/PRINVOKE</faultstring><detail><yq1:com.sap.engine.interfaces.webservices.runtime.RuntimeProcessException xmlns:yq1='http://sap-j2ee-engine/error'>Could not retrieve SDO HelperContext for service_id nsn.com/claimbpmproject/PRINVOKE</yq1:com.sap.engine.interfaces.webservices.runtime.RuntimeProcessException></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
0
Thnaks
Sudhir

Similar Messages

  • Messages backup on PC not visible after updating o...

    I had a backup of my phone (E71) messages on my PC which were very much visible on the ovi suite before I updated the ovi suite to a newer version (version 3.1.1.78). To my surprise the messages saved on my PC are no longer visible when I started ovi suite after updation.
    Need those messages badly as I have deleted them from my phone. Kindly help if possible.

    spent some time with Apple support today. Go into settings and sign off of your Apple ID in iMessages and FaceTime. Power off phone and restart. Log back in using Apple id in iMessages and FaceTime. seemed to work for me for Now. Hope it helps.

  • Hot spot s not visible after latest iOS version update on my iPad please help

    hey personal hot spot is not visible after iOS latest version update on my iPad mini please help

    Hey Devinder from chd,
    For most issues with Personal Hotspot, try out the basic troubleshooting in the article below. It does talk about iPhone but the troubleshooting is the same for your iPad. If you are still having issues, let me know and I can see what else we can do after that. 
    iOS: Troubleshooting Personal Hotspot
    http://support.apple.com/en-us/HT203302
    Basic troubleshooting
    See if your iOS device, computer, and wireless plan all meet the system requirements for Personal Hotspot.
    Make sure Personal Hotspot is on: Tap Settings > Cellular > Personal Hotspot.
    Check the Internet connection on your iOS device: Tap Safari and load a new webpage.
    If one connection type doesn't work, try another. For example, instead of connecting using Wi-Fi, use USB or Bluetooth.
    Turn Personal Hotspot off and on: Tap Settings > Personal Hotspot or Settings > Cellular > Personal Hotspot.
    Install the latest version of iOS.
    Reset your network settings: Tap Settings > General > Reset > Reset Network Settings.
    If you still see the issue, restore the iPhone.
     Take it easy,
    -Norm G. 

  • I have updated iOS 6 in my iPhone 4S and it went perfectly fine. Just after that when I opened the message app I found that the sms body of system generated messages was not visible after tapping on them.

    I have updated iOS 6 in my iPhone 4S and it went perfectly fine. Just after that when I opened the message app I found that the sms body of system generated messages was not visible after tapping on them.

    The terms of service of the Apple Support Communities prevent us from helping anyone with a jailbroken phone.
    You're on your own.  Good luck.

  • BPM TASK IS not visible in UWL  Inbox

    Hi  BPM Expert,
      I am facing the big issues in BPM process Triggered problem. earlier i used  to BPM start using Web service with Two entity as ID and Username  but its was  working fine .but i have some requirement to  adding one element in Existing WSDL entity as casename  , i have added that element and execute the web service using WEBDYNPRO application ,but Task is not visible in UWL inbox but earlier it was working perfectly,  after adding that field ,BPm tax is not visible UWL inbox ..
    Please guide me ,Its urgent...Plz plz..
    Its showing error as
      Technical issues is triggered during the process creation..
    Thanks
    sudhir

    Hi ,
      I am executing the WEbservice using WSNAVIGATOR but its not execute , its getting HTML log error as  below..
    1-Web service returned error. Fault Code: "(http://schemas.xmlsoap.org/soap/envelope/)Server" Fault String: "Could not retrieve SDO HelperContext for service_id nsn.com/claimbpmproject/PRINVOKE"
    2-
    HTTP/1.1 500 Internal Server Error
    server: SAP NetWeaver Application Server 7.20 / AS Java 7.20
    content-type: text/xml; charset=utf-8
    date: Sat, 26 Nov 2011 11:40:56 GMT
    transfer-encoding: chunked
    Set-Cookie: <value is hidden>
    2e4
    <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Server</faultcode><faultstring>Could not retrieve SDO HelperContext for service_id nsn.com/claimbpmproject/PRINVOKE</faultstring><detail><yq1:com.sap.engine.interfaces.webservices.runtime.RuntimeProcessException xmlns:yq1='http://sap-j2ee-engine/error'>Could not retrieve SDO HelperContext for service_id nsn.com/claimbpmproject/PRINVOKE</yq1:com.sap.engine.interfaces.webservices.runtime.RuntimeProcessException></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
    0
    Thnaks
    Sudhir

  • Download button on appstore is not visible after I have upgrated IOS 7 in my Iphone 5

    Download button on appstore is not visible after I have upgrated IOS 7 in Iphone 5, how can I fix it?

    I am using iPhone 4S.  Under iOS 7.04 everything was working fine.  Now that I have updated to new 7.1 version, I am finding that the overall phone speed as been degregated.
    Some times when answering the phone, you select to answer or swipe, it seems to hang up the phone.  I end up missing the call.
    Some times when I try to hang up the phone, it does not hang up right away.  The phone appears to get stuck, you hear voices on the other end, but the call has not dropped.  It takes a while for the call to drop and free up the phone.
    Typing is slow.  As you type, it does not show right away, only after 2 to 4 words have been typed then it will show all those characters.
    Internet browsing is slow.
    I mostly use the phone for 3 things - Making/Receiving calls, Texting, and Internet browsing.  I don't play apps.
    This is NOT a jailbrake phone, it's as original as it can get.  I am hoping a fix is put into place.  I have really lost faith in Apple's way of iOS upgrades.  This is my 2nd regret in upgrading to new iOS.

  • SCCM 2012: F8 debug widow not working (At-least not visible) after entering into the "Currently installed Windows 7 Image": F8 works in winPE

    F8 debug widow not working (At-least not visible) after entering into the "Currently installed Windows 7 Image"
    F8 option turned on in the boot image.
    F8 debug window works in Windows PE.
    F8 debug window does not show-up on F8 key-press after entering the 'Currently installed Windows 7 Image" all the way to the end of the task sequence.
    But after a 'Restart Step' (and if F8 was pressed) the Task Sequence tends to pause indefinitely as if the
    F8 debug screen is open in the background.
    I am using SCCM 2012 SP1 (CU 1 is
    not an option at the moment).
    Any ideas as to how I could get the debug F8 option back?

    There have been a couple reported occurrences of this (or something similar) to my knowledge with no resolution in the forums. Your best bet may be to open a case with CSS.
    Also note that if you were going to do a CU, why would you pick CU1 instead of CU4? And, can I ask why it's not an option out of curiosity?
    Jason | http://blog.configmgrftw.com

  • My new iPad sound is not working after updating to ios 6.1

    My new iPad sound not working after updating to ios 6.1. Headphones are working fine. I tried all the troubleshoot. can anyone know the answer, plz share with me

    Hi,
    I have exactly the same issue as everyone above. I only get sound through the slider on the ringtone in settings and through my headphones. I do not get any sound anywhere else at all.
    I Have tried:
    - Updating to iOS 6.1.3
    -re starting the device
    -checking that the device is not muted. My slider switch is set to mute rather than lock and is unmuted.
    -going into general settings and reset all settings
    -the device reset several times (waiting until I saw the all important apple logo)
    -removing the last few apps I installed.
    Nothing at all has worked, please help!
    New iPadiPad

  • Iphone 4 personal Hotspot not working after update to IOS 7.1 India BSNL cellular

    Iphone 4 personal Hotspot not working after update to IOS 7.1 India BSNL cellular

    BSNL is not a supported carrier. Personal Hotspot requires carrier support and provisioning of the account to enable it. iOS 7.1 disabled the ability to manually configure Personal Hotspot on unsupported carriers.

  • HELP ME! Nokia 5230 does not work after update

    My nokia
    5230 will not boot after update. I've also tried everything and red green camera button intedruken but nothing worked. Can someone help me I am so on vacation.
    Sorry for my English I am Dutch

    Have a look at this complete guide.. If nothing works, then the ONLY solution is to visit Nokia Care...

  • HT1688 My Hot Spot does not work after update to 6.0.1.  Service is with ATT.  Apple says problem is with ATT, ATT says problem is with Apple.  Anyone else having this problem?

    My Hot Spot does not work after update to 6.0.1.  Any suggestions?

    Ok, I had the same issue, my phone is unlocked(iphone 5 with 6.1.3). So I went to the apple store and had it replaced. it worked good for a day and started doing the same thing. When the apple tech replaced my phone, he transfered my screen protector to the new one.
    so I thought it was my sim card, I put in my sisters sim card from a different carrier and it did the same, so then I was like let me take off the screen protector, and that was it.
    so guys, if you have a screen protector on your phone and it's doing "low signal", "No Service", "Searching", "Full bars cycle" then take off the screen protector. so far my phone is working normal.

  • Click to activate does not work after update

    Click to activate plugin does not work after updating to version 23.0.1

    hello Kamullia, if you have set click-to-play to true in about:config you can now go to the ''addons-manager > plugins'' section and set the permissions individually for each plugin type.

  • WiFi iPhone 4S does not work after update iOS 6.0

    WiFi iPhone 4S does not work after update iOS 6.0

    This sounds more like a hardware issue.
    Have you checked that the dock connector port is not dirty?

  • 3G is not working after updating to iOS 6.1

    My 3G connection is not working after updating to iOS 6.1. I have tried all possible solutions like resetting the network, restarting the phone etc.
    With this kind of bugs in every update, Apple will no more be THE Apple.
    There are bugs which have not been fixed even in the subsequent updates. SMSs going blank being one of them.
    Miss you Sir Jobs.....

    I have since managed to sort mine out - when the phone was updated it wiped out the network settings. 
    I was able to reset them by manually putting the information in:
    Settings - General - Cellular - Cellular Data Network and then I put in the correct details for APN, username and Password in the relevant sections and now it works OK.
    Hopefully it will work for others too

  • Problem with new version 4.3.2 apps not working " after update to the new version "

    Problem with new version 4.3.2 apps not working " after update to the new version "
    i was in 4.3.1 then i do the update , but now after update i face this problem , so what i Supposed to do ?!!

    Hi There
    Had the same problem as you. App would terminate when launched.
    Solution to working You Tube app:
    -Go to playstore
    - Uninstall app (it doesn't remove the app, only removes the update)
    - "Et Voila", working again.
    This doesn't correct the problem, it's just a workaround for you to be able to use youtube app again.
    Hope it helped.
    Best Regards

Maybe you are looking for