How to complete the enddate after change in status of the user

Hello

I created a feature adapter to fill the start date and end date.

I have a planner that disables the accounts of user based on the following two conditions:

1. the date system and the end date are identical.

2. There is a preset difference in number of days between the start date and end date.

Now, we have the end date must be filled with a new value when the user is on.

I created an adapter to process task that calculates the new end date I created a new task in the process of user Xellerate and attached this adapter to new task. I have traced the output of the adapter to the user closing definition. This new task has been added as a dependent task in the task of the user activation. Also in the USR_PROCESS_TRIGGER, I have added USR_END_DATE and gave the name of the adapter to decode the column.

Now when I try to enable the user, the account is activated but end date is not populated with the new value.
I don't get any errors or on the.

Please let me know if my approach is good. Please guide me.

Thanks in advance.

TRY THIS

package com.oim;

import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.Hashtable;
import java.util.Map;

import com.thortech.xl.crypto.tcCryptoUtil;
import com.thortech.xl.crypto.tcSignatureMessage;
import com.thortech.xl.util.config.ConfigurationClient;

Import Thor.API.tcResultSet;
Import Thor.API.tcUtilityFactory;
Import Thor.API.Operations.tcUserOperationsIntf;

public class StatusTrigger {}
     
private tcUtilityFactory utilityFactory = null;
tcUtilityFactory utilFactory;
tcSignatureMessage moSignature = null;
     
     
     
{} public Sub (String userid, String status) trigger
try {}
ConfigurationClient.ComplexSetting config =
ConfigurationClient.getComplexSettingByPath ("Discovery.CoreServer");
final Hashtable env = config.getAllSettings ();
               
moSignature = tcCryptoUtil.sign ("xelsysadm", "PrivateKey");
utilFactory = new tcUtilityFactory (env, moSignature);
{if (Status.equalsIgnoreCase ("enabled"))}
               
          
tcUserOperationsIntf userOperationsIntf = null;
userOperationsIntf = utilFactory.getUtility ("Thor.API.Operations.tcUserOperationsIntf") (tcUserOperationsIntf);
UserMap HashMap = new HashMap();

userMap.put ("Users.User ID", username);
tcResultSet userSet = userOperationsIntf.findAllUsers (userMap);
Calendar now = Calendar.GetInstance ();

Now.Add(Calendar.date,15);
System.out.println ("Current date Now:" + Now.get (Calendar.Year) + "-" + (Now.get (Calendar.month) + 1) + "-"+ now.get (Calendar.DATE) ");
String x = now.get (Calendar.YEAR) + "-" + (now.get (Calendar.MONTH) + 1) + "-"+ now.get (Calendar.DATE);.
          
x = x + "12:01:00.000000000";
          
System.out.println ("\n\n\n now X is" + x);
Map endDate1 = new HashMap();
endDate1.put ("Date of Users.End", x);
userOperationsIntf.updateUser (userSet, endDate1);
               
System.out.println ("Done");
}
} catch (Exception e) {}
e.printStackTrace ();
}
}
     
}

Tags: Fusion Middleware

Similar Questions

  • How to fix the user accounts in windows 8

    How to correct the user account in windows 8 on new g7 2246nr, I put to your laptop using the Microsoft account then switched to a local account.  I found myself with i admin working the rest of my files are broken up between 3 other user accounts.  I spoke with Microsoft to try to consolidate the accounts and they used a command line in the command, but he has not done. I always work with the system, but it has problems. I reloaded the software so for 3 times. All know how to correct the problem without reload all the software again?  also, after configuring sharepoint in Office Pro Plus, he created another administrator account.  I do not think this would happen?

    Hi BJ2124,

    Although I regret the inconvenience that you had with your experience of Microsoft Windows 8, you can better receive the technical expertise you need by contacting Microsoft about the issue of multiple account creation.

    You can call Microsoft Customer Service at 1-800-642-7676
    Mon - Fri: 05:00 - 21:00; Sat - Sun: 06:00-15:00 (PST)

    As a reference, I included the link to the technical support of Microsoft Windows 8 page:

    http://support.Microsoft.com/contactus/?ws=support

    Also, here is a reference link to change logins to Microsoft for local accounts:

    Microsoft how to switch from one account to a Local account in Windows 8

    And finally, here is a quick reference to solve the problem that you encounter while using an account download troubleshooting tool from Microsoft:

    The problems of account Microsoft Windows 8 with convenience store "Microsoft accounts"

    In this forum support is available for support hardware/software HP. I will provide better supported with your hardware/software of HP. If you need help with a software which is another provider, so I can re - direct you to reference appropriate at this time.

    I hope that you can mark these messages as solved, so that you can inspire others to follow your example with success. You never know who you can inspire.

    -How can I give Kudos? | How to mark a post as solved? --------------------------------------------------------

  • How to create the user account using the command?

    How to create the user account using the command?

    Open cmd as administrator, and then type the following commands one after the other

    NET user / add program mypassword
    net localgroup administrators program / add
    net share concfg * C:------/ grant: program, complete
    This will create a user account with the name "Program" and the password "MonMotpasse".

    You can create the user name and password of your choice.
  • How to pass the user to the current provider 11.1.1.3?

    Hello
    After I connect to Smartview in Excel by using common provider 11.1.1.3, I seem not to be able to change my login ID. It always automatically connect me as my 1st login ID.
    How to pass the user to the current provider 11.1.1.3?

    Hello

    If you right-click on the essbase server and select "Invalider SSO" and then disconnect > commune of provider connection.
    When you connect again it should ask you your login information.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Somehow, I blocked my user account (login) and I tried to help but can't find any info. How to UNLOCK the user account. Than k you

    The user has clicked on Vista, the little lock at the bottom of the START window.

    Somehow, I blocked my user account (login) and I tried to help but can't find any info. How to UNLOCK the user account. Thank you

    Hello

    Click the account icon that was locked and enter the password IF you know and otherwise:

    Try Safe Mode - several times, press F8 that you start. The Admin account there is no default password
    so unless someone has changed, you should have access there. Then Control Panel - accounts - users
    Manage another account - use this down your user account (to the lowest level) APPLY/OK
    then go back and reset it to the Admin APPLY/OK - this clearly allows corruption. Do this several times.
    Then fix the password in your usual account. Do not forget to leave your account administrator if you
    wish.

    If no joy Mode without failure:

    Try this - use the hidden administrator account to lower your user account (to the lowest level) APPLY/OK
    then go back and reset it to the Admin APPLY/OK - this clearly allows corruption. Do this several times.
    Then fix the password in your usual account. Do not forget to leave your account administrator if you
    wish.

    Make another Admin account with your password and use it to fix the others if necessary. (just for
    repair, don't use regular account, not a safety valve) always keep a spare ADMIN account.

    DO NOT LEAVE THE ENABLED LSA OR USE DAILY. If it corrupts you are toast!

    How to enable or disable the real built-in Administrator account in Vista
    http://www.Vistax64.com/tutorials/67567-administrator-account.html

    You can run the Admin account hidden from the prompt by if necessary.

    This tells you how to access the System Recovery Options and/or a Vista DVD
    http://windowshelp.Microsoft.com/Windows/en-us/help/326b756b-1601-435e-99D0-1585439470351033.mspx

    If you cannot access your old account, you can still use an Admin to migrate to another (do not forget to always
    not that an Admin account that is not used except for testing and difficulty).

    Difficulty of a corrupted user profile
    http://windowshelp.Microsoft.com/Windows/en-AU/help/769495bf-035C-4764-A538-c9b05c22001e1033.mspx

    ---------------------------------------------------------

    If necessary:

    Ophcrack is a free Windows password cracker based on rainbow tables.
    http://Ophcrack.sourceforge.NET/

    How to reset a Windows Vista - Trinity Rescue Kit method - password password reset disc - burn the ISO
    http://www.WikiHow.com/reset-a-Windows-Vista-password
    YouTube video on the use of the Trinity rescue Kit
    http://www.YouTube.com/results?search_query=Trinity+rescue+Kit&search_type=&AQ=f

    Reset your forgotten password the easy way using the Ultimate Boot CD for Windows
    http://www.howtogeek.com/HOWTO/Windows-Vista/reset-your-forgotten-password-the-easy-way-using-the-ultimate-boot-CD-for-Windows/

    Offline NT Password & Reset Editor
    http://home.eunet.no/~pnordahl/ntpasswd/

    I hope this helps.
    Rob - bicycle - Mark Twain said it is good.

  • How to help the user focus

    How to help the user focus

    Magnifier enlarges part of the screen. This is especially useful for viewing objects that are difficult to see. It is also useful for people who are generally difficult to see the screen.

  • How to know the user is the call

    Hi all

    I development push a service Application in which the following requirement is that the push message should not be displayed when the user is in the call. How to detect the user wheather so busy on appeal?

    Please suggest me how to proceed.

    looking forward to responses CIHI to you guys.

    Thank you

    I thought you wanted to know if the user is on a call.  The code I gave you the will and sets the appropriate Boolean value.  Where and how you use it is up to you isn't it?

    I would have thought that the logic in your code to push would be simply

    If (! onCall) {}

    view

    }

  • How to disable the user rights in adobe acrobat reader DC?

    How to disable the user rights in adobe acrobat reader DC?

    Is not possible. You need Acrobat for that.

  • How to prevent the user open and play a flash game on multiple browser windows at the same time?

    Hi guys,.

    I made a game as the same site: http://www.Netent.com/games/table-games/Texas-Holdem-Pro-series/

    Anyone know how to prevent the user opened and play the game on multiple windows browser both?

    I used the command of flash to embed flash into a page aspx and connection to sql server

    Someone help me, please.

    p/s: Sorry, my English is not good

    You can use localconnection.

  • How to pass the user/pass of OSB to a secure service

    How to pass the user/pass of OSB to a secure service

    http://download.Oracle.com/docs/CD/E13159_01/OSB/docs10gr3/consolehelp/serviceAccounts.html

  • How to display the user name in report editor RTF BI?

    Please advice how to display the user name in report editor RTF BI?
    Maybe this can be done via a hidden parameter of the report, BEEP, which by default will be implemented with the macro as {$username$} (or smth like)?
    Thanks in advance!

    Yes, or create a hidden report BEEP setting with the name you want and the default ": xdo_user_name" (without ""). And on the report that you call the parameter with the username!

  • How to give the user ONLY views all SYS?

    My DBA cannot give me all s/n priveligies, but does not know how to give me ONLY priveligies all SYS views (v$ sql, v$ sqltext, process$ v, dba_scheduler_jobs,...)

    How to give the user to display all VIEWS SYS?

    in my case should be 1)? Right?

    The privilege or role will provide the desired access.

  • How to find the user Apex table

    Hello

    Please let me know, how to find the user apex table. I need validate the unique user based on the same, for which I use below function.

    DECLARE
    VAL A BOOLEAN;
    BEGIN
    VAL: = APEX_UTIL.IS_USERNAME_UNIQUE (p_username =
    (: P6_USERNAME);
    END;

    However, in this case, he always comes back "FALSE," saying new user exists.

    Kindly help me in fixing this problem.

    There is a view called apex_workspace_apex_users.

    Details under Home > utilities > Application Express views

    André

  • How to add the user to the Group?

    HY,
    Let's say I'm new to application Express 3.2.1 :)... I searched for exmple or no matter how how to add the user in the Group (at the level of the PL/SQL application).
    I know wwv_flow_group_users Traoré is an opinion not a table. I also know thet CREATE_USER_GROUP procedure create us group, and with the CURRENT_USER_IN_GROUP function, we see if the user is in the selectet group.

    But again, my question is how to add the user to the Group?

    Thank you
    Andrej

    Published by: user10719915 on October 16, 2009 12:18 AM

    Hello

    It will be colon delimited.

    Concerning

    Paul

  • How to display the user id and the session on the form?

    Hi all can someone guide me how to display the user id and the session on the form? Please guide me

    Sarah

    Hi Sarah,.

    You can use GET_APPLICATION_PROPERTY (CONNECT_STRING) for this.

    BTW, have you tried search in forms online help? It has good examples explaining all the built-ins.

    Arun-

Maybe you are looking for

  • Re: Satellite C850 - cannot start windows 8.1

    Hello I have reset clean my Toshiba Satellite C850 with USB windows 8.1 but now if I start the laptop on it happens has this code 0 xC0000001.I can not start safe mode cannot use advocatus. Help, please

  • How can I share my workouts with friends?

    Is it possible to share with other users Apple Watch workouts?  My wife wants to compete for who work during the week with friends who do not live near us but got Apple watches.

  • Comment by restrict an absolute path?

    Hello I created an application in LabView in which user is brought, at some point, select the backup of its data path. I would like to add the starting path and restrict it, that is, impose the absolute path of the backup. With the 'path' command, I

  • Retrieve the bytes of the image of the path of the image file

    Hello I was unable to find a post that details how to retrieve the bytes of the image of an image (given the path to the file of the image on the device).  Basically, using the FilePicker, I'm able to get the path of an image chosen by the user:

  • Xerox DocuMate 510 scanner

    Does anyone at - he had a success find a driver for this scanner work with Windows 8.  the Xerox site says that it will work for windows 8, but I jhave had no chance.