Issue Setting Resource Attributes via Workflow Process
I'm currently trying to set resource attributes via a workflow process, but for whatever reason the attribute is not detected as "changed" and the update object has nothing about the attribute. I'm wondering if I'm just doing something wrong with the way I'm setting it, or if I'm missing a piece to apply the upate.
What I'm doing is...
1. Checking out the user view
2. updating the attribute via code something like this...
<set name='user.accounts[ldap].attributeIWantToChange'>
Logic in here
</set>
3. then I'm checking the view back in.
Anyone know why this isn't working(I can set other attributes like waveset.roles fine this way)?
Edited by: UNO-AD-HM on Jul 6, 2009 12:54 PM
Figured it out, have to load a different form in when I check the view out, the tabbed user's form will not update resource attributes.
Similar Messages
-
Powershell - Bulk Set-ADUser attributes via a CSV file
I am attempting to do a Bulk replace of AD User account attributes via a CSV file. Each line in this script works except the part of Set-ADUser where I enter -Replace $attribs. I'm not sure how to code this
part.
<#
The .csv file should have the following headers (first line)
GroupName,Status,Approver1,Approver2,Owner
#>
#Import CSV
$csv = @()
$csv = Import-Csv -Path "C:\TempAdd_Grp_Attrib.csv"
#Loop through all items in the CSV
ForEach ($item In $csv)
$gname = $item.GroupName
$attribs = @{'extensionAttribute2'=$item.Status; 'extensionAttribute3'=$item.Approver1; 'extensionAttribute4'=$item.Approver2; 'managedBy'=$item.Owner}
Set-ADGroup -Identity $gname #-Replace $attribs
mamadukesYes. I am attempting to update the AD Group extension attributes.
The code below works, but I know I can streamline this if I use the INSTANCE, which I am having an issue with (Set-ADGroup -Instance $Update)
Import-Module ActiveDirectory
<#
The .csv file should have the following headers (first line)
GroupName,Status,Approver1,Approver2,Owner
#>
#Import CSV
$date = get-date -Format "MMddyyyymm"
$csv = @()
$csv = Import-Csv -Path "C:\Temp\Add_Grp_Attrib2.csv"
#Loop through all items in the CSV
ForEach ($item In $csv)
$Update=(Get-ADGroup $item.GroupName -Properties extensionAttribute2,extensionAttribute3,extensionAttribute4,ManagedBy);
$Update."extensionAttribute2"=$item.Status
$Update."extensionAttribute3"=$item.Approver1
$Update."extensionAttribute4"=$item.Approver2
# Set-ADGroup -instance $Update
Set-ADGroup -Identity $item.groupName -ManagedBy $item.Owner
Get-ADGroup $item.GroupName -Properties extensionAttribute2,extensionAttribute3,extensionAttribute4,ManagedBy | select name,extensionAttribute2,extensionAttribute3,extensionAttribute4,ManagedBy | Export-Csv "C:\temp\Add_Grp_Attrib_Updates_$date.csv" -NoTypeInformation
mamadukes -
Hi,
I try to set an attribute ("Action") of users on a target system (Lotus Notes) dependend on the type of process that was carried out:
When the user is created in Lotus Notes by oim, "Action" should be set to the value "create".
When the user is updated in Lotus Notes by oim, "Action" should be set to the value "update".
When the user is disabled in Lotus Notes by oim, "Action" should be set to the value "disable".
What would be the easiest way to achieve that? And how exactly would I have to set that up? (I have tried reading the documentation on Adapter Tasks, however I wasn't able to get that to working...).
Thank you!
MHi J,
thanks for your reply. I had some troubles trying to follow your description, but this is what I did:
1) Create one field in your process form as "Action".
I used the pre-existing field "RoamSubdir"
2) Create a new Process Task in Lotus Notes Process Defn for "Action Updated" (You can use OOTB adapter for mapping purpose)
DesignConsole: Process Management > Process Definition > "Lotus User", Add: "RoamSubdir Updated"
3) Create a new Process Task Adapter which populates which takes input as input1 and return the input.
Development Tools: Adapter Factory > Adapter Name "RoamSubdirAction", Adapter Type: "Process Task" > Tab "Variable List", Add "Name: input1, Type: String, Mapped As: Resolve at runtime", Tab "Adapter Tasks" > Add "Logic Task", "Set Variable", Variable Name "Adapter return value", Operand Type "Variable", Operand Qualifier "input1"; Click "Build".
4) Create 3 Process Tasks in Lotus Notes Process Defn . One for each action. For example: Update Action As Enable, Update Action As Disable, Update Action As Create. In each process tasks, pass input as Enable,Disable and Create respectively.
Process Management > Process Definition > "Lotus User", Add: Task Name: "Update SubRoamdir As create", Tab "Integration", Add, "Adapter", adpROAMSUBDIRACTION. Edit "2|N|input1|input", Map To: Literal, String, create; Edit "1|N|AdapterReturnValue|ReturnVariable", Map To: Process Data, Qualifier: RoamSubdir
5) Map each tasks created at step 4 to success of Create User, Enable User, Disable user respectively.
Process Definition > Edit "Create User" > Task Dependency, Dependent Tasks, Assign "Update RoamSubdir as create"
However, this does NOT work. When provisioning a new user on Lotus, looking into the resource history I can see that "Update RoamSubdir as create" is NEVER called.
Did I do something wrong?
Thanks for your help,
M -
Is it possible to set the "ou" attribute of a computer object in AD via script? That attribute is not listed as an option in Set-ADComputer and it doesn't auto-populate based on the OU the object is in. How can I programatically set
the attribute rather than modifying each individual object manually?You can populate it with Set-ADComputer.
Set-ADcomputer -Identity xxx -add @{ou="yyy"}
This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.
Get Active Directory User Last Logon
Create an Active Directory test domain similar to the production one
Management of test accounts in an Active Directory production domain - Part I
Management of test accounts in an Active Directory production domain - Part II
Management of test accounts in an Active Directory production domain - Part III
Reset Active Directory user password -
Disable resource account via Workflow
Hello I created a transition in the Update User workflow to disable a resource account if a field is indicated in the admin tabbed user form.
This activity works but all resource accounts (email, AD) are being disabled. Only email needs to be disabled. How do I get the 'services' value to take effect?
<Activity id='9' name='DisableAccountAccess'>
<Action id='0' application='com.waveset.session.WorkflowServices'>
<Argument name='op' value='disableUser'/>
<Argument name='accountId' value='$(user.waveset.accountId)'/>
<Argument name='doWaveset' value='false'/>
<Argument name='services'>
<list>
<s>emailResource</s>
</list>
</Argument>
</Action>
<Transition to='Notify'/>
</Activity>also tried below code but have been unable to get it to work.
<Activity id='9' name='DisableAccountAccess'>
<Action id='0' application='com.waveset.session.WorkflowServices'>
<Argument name='op' value='checkoutView'/>
<Argument name='type' value='disable'/>
<Argument name='id' value='$(user.waveset.accountId)'/>
<Argument name='authorized' value='true'/>
<Return from='WF_ACTION_ERROR' to='error'/>
<Return from='view' to='disableAccView'/>
</Action>
<Action id='1'>
<expression>
<block>
<set name='disableAccView.resourceAccounts.currentResourceAccounts[emailResource].disabled'>
<Boolean>true</Boolean>
</set>
<set name='disableAccView.accounts[emailResource].disabled'>
<Boolean>true</Boolean>
</set>
</block>
</expression>
</Action>
<Action id='2' application='com.waveset.session.WorkflowServices'>
<Argument name='op' value='checkinView'/>
<Argument name='view' value='$(disableAccView)'/>
<Argument name='authorized' value='true'/>
</Action>
<Transition to='Notify'/>
</Activity>I would prefer to use the first method. Thank you in advance for your helpAfter having a chance to actually look at the documentation I figured I'd add one more thing for those who happen to stumble across this in a search later. You are, of course, right. The services argument is what you need for disable user.
For others reading this I should correct my previous posting. The "TargetResources" setting tends to be more of a form property rather than a workflow argument although it can be used with the checkoutView and checkinView workflow services. It is recommended by Sun, in the performance tuning guide, to keep views as small as necessary in order to speed things up. -
Set resource attribute with srvctl instead of crsctl ?
Hello,
We're in 11gR2, Grid Infrastructure.
CMOS note 790189.1 states that "using crs_* or crsctl commands on resources with the prefix ora.* (resources provided
by Oracle) remains unsupported".
So do you think there's a way to modify the AUTO_START attribute of a cluster resource through the use of srvctl instead
of crsctl ?
(I found no "srvctl modify resource" option likely to do this trick...)
Thanks.
SebIs your end goal to stop the service from starting automatically? If so, then use srvctl disable service. You will have to enable it before it can be started.
Cheers,
Brian -
Supplier Created via Workflow Approved By Default
Hi Experts,
I have a requirement in Create supplier via workflow where I have to make
Purchsing hold check box unchecked and Approved Supplier check box
checked by default ,I have customized the vendor registration via
workflow process wherein I have written a script to make Approved
supplier checkbox under header checked by default,in supplier creation
via workflow page but When the workflow ends and the supplier is
approved and I click on Done and come out of document,the Approved
supplier checkbox is unchecked though the supplier is created and we
are getting a background error as well saying that the approver does
not have enough permission to view the document though we have provided
all the necessary rights to the Approver, please suggest as what could
be the rerason for Approved supplier to be unchecked though the script
is running fine and what could be the reason for background error as
this is not the expected behavior.Hi Dhiraj,
Thanks for yor reply , I have written the code in script.and the issue is resolved by writing two scripts .
regards,
VIshal -
Not Receiving Email Notifications via Hyperion Workflow Process
Hi All,
Configuring SMTP for workflow process in Hyperion planning.
I did the following steps for the above process.
1--> I checked whether SMTP server is running or not using Telnet command in the machine where the application is running-->*[Its working fine]*
2-->Then I logged in to planning application with admin credentials and set the Email server details as follows
2.a) *[Planning-->Administration-->Application-->Settings-->I entered the Email server details]*
2.b) *[Planning-->File-->Preferences-->Planning-->I mentioned the Email address for administrator]*
3--> I created several users using shared services console and I set the security Access type as Descendents Inclusive for each and every dimensions.
4--> I set the Email address for every users which are created in the above step *[Planning-->File-->Preferences-->Planning]*
5--> I created a Planning unit Hierarchy.
6-->I logged as a Planner and I entered the budget in the Data form .
7-->I promoted this budget to the Higher official for verification process.
8-->But I didn't get the status mail for the above process.
Kindly guide me whether I am following the right procedure to config SMTP in my application.
How to get the status of the notification mail through relational tables.
Kindly mention the location of log files regarding this issue.
Please guide me to overcome this issue.
Thanks and regards
SaiHi John,
Thanks for your reply. I couldn't get you from the below quote
Does you SMTP server accept anonymous connections?
Anonymous in the sense that you mean like Unauthenticated connection. Yes my mail server is unauthenticated server, hence it doesn't require any username and password.
Regards,
Sai -
How to get the Asset's current step under a specific workflow process via API?
Everyone,
Is there a way to get the asset's current step for a specific workflow process by the WebCenter Sites API? We are showing out the asset created within the WebCenter Sites in another application via its API. We would like some actions get to be done once determined assets went into a specific step of a workflow process. Any suggestions are welcomed.
Regards!Here is some information from the FDK Programmer's guide page 115:
IMPORTANT: A valid text range can span multiple paragraphs, subcolumns, or text frames.
It cant span multiple flows, footnotes, table cells, or text lines.
It is possible for a document to have no text selection or insertion point at all. This can occur in
the following circumstances:
● One or more graphic objects in the document are selected
● One or more entire table cells in the document are selected
● There is no selection of any type in the document
So, I did select one or more entire table cells in the document in my first test. It's logical that the result was not like expected.
But selecting one or more entire table cells is a crucial requirement for my plugin, is there anyway to get things straight?
Simply put, I want to enable users to select one or more table cells in the document, and I want to get the object handles of the first cell and the last cell through Framemaker API calls. How?
Many thanks in advance!
Best Regards,
Ellen N. Zhao -
FIM 2010 Workflow Processing Issue
Hi All,
We are having a problem with FIM 2010 (Update Rollup 2) workflow processing.
Background is:
Set: Object State 2 set (criteria based membership, criteria includes AUX_Attr1 ‘NOT Equal’ 3)
Set Object State 3 Set (Manually managed membership)
WF1: set AUX_Attr1 to 3
WF2 : Set AUX_Attr1 to 2
MPR 1: Transition in MPR (Transition set = Object State 2 set), fires WF2
MPR 2: Transition in MPR (Transition Set = Object State 3 Set), fires WF1
What we are seeing is the following:
We add a user to “Object State 3 Set”
From the request history we can see that:
The successful request for the set membership change (transition in Object State 3 Set)
The successful request by the Forefront Identity Manager Service Account to set AUX_Attr1 to 3
and FIM correctly fires MPR 2, this sets AUX_Attr1 to 3 and this has been verified by looking through the request history
A couple of seconds later FIM fires WF2 which sets AUX_Attr1 back to 2.
The request history shows no signs of the object transitioning back into “Object State 2 set” so I am unsure why this
workflow would trigger again.Best thing to do with this problem is look at the request that caused this to happen and look for parent requests and for the applied policies
David Lundell, Get your copy of FIM Best Practices Volume 1 http://blog.ilmbestpractices.com/2010/08/book-is-here-fim-best-practices-volume.html -
Roles Setting and Removing Resource Attributes
Hello All,
I have a quick question (Which I hope has a quick answer). I am trying to set up a role, so that when it is assigned to a user, sets an attribute value on an LDAP resource. Then, when the role is removed from the user, the attribute value is cleared. When setting up the role, I specified the resource as assigned, and then set the attribute. When I set the role on a user, it is successfully setting the value in the attribute. When I remove the role from the user, it is not removing the value in the attribute. Is there an easy way to do this?
Thanks!Hi,
When setting the RoleAttribute you need to set "Authoritive Set to Value, Clear Existing", then when the Role is removed from the user the attribute value is deprovisioned. Unfortunately this also has the affect of removing any other value that the attribute may have (especially true since many LDAP attributes are multi-valued).
HTH,
Paul Walker -
Approval Process of Quotes via Workflow
Dear Experts,
I'm looking for a Workflow solution, with which I can elektronically appove a Quote. In detail it means e.g. to reales a quote, two sgnatures are mandetory. These two people should be chosen inside the quote as a partner. After Savind they should get an e-mail notification and be able to approve the quote via e-mail (Outlook) or inside SAP.
Is there a possibility to do that via workflow? How? Do anybody has some experience?
Other proposals?
Thanks in advance.
Regards,
Abbas1. backup the existing Update user workflow as an xml file
2. Copy paste the same in the BPE.
3. Save the copy as a new object with a different name.
4. Edit the new workflow as follows:
4.1 Create new activity
4.2 In the new activity, add a variable with some name
4.3 create a new action, and let that action be a subprocess. For that subprocess, browse and choose 'Approval' as the action.
4.4 Add a argument as name=approvalForm and value=<name of approval form>
4.5 Include argument user=$(user), etc. (Check the original approval workflow to see what the names of the arguments are)
4.6 For return to=name of the variable declared, from=approved
4.7 Add a 'isTrue' condition for the variable declared.
5. Make the appropriate transitions, and ur ready to go.
Let me know if this helps. I can post some skeleton code tomorrow. I need to work on it. Drop a line at [email protected] -
Need to pass user_id and password in URL item attribute of workflow
Hi Gurus,
I am facing an issue in creating an URL in workflow builder.
Basically i have created an URL Item type attribute with value
../../OA_HTML/jtfTaskMain.jsp?jttst0=2414_23135%2C23135%2C-1%2C0%2C&jttmexjtfm0=_0_0_1_0_f_nv_&jttmexetfm1=_0_-1_&jfn=ZG700F3B7360316A8A7557B082337FBD0423D2AA232DEA5407CEA2D4D6508E6A04693B0E4B1E1EA9069F1DFFC5EA0DB3ABED&jtfm0=_0_0_1_1_f_nv_&etfm1=_1_-1_&oas=6B1ntRszm8xl-UOPcBYwww..&task_id=10505&PID=&PNAME=&PTYPE=
in workflow and above highlighted values are the dynamic paramers to open the standard JSP page. The above link works because it is user specific. Please let me know how to pass these dynamic parametsr like user_id, password, OAS,task_id to the URL?
Thanks in advance,
Veerendra
Message was edited by:
user621894Hi,
You'll need to determine the values and populate the URL in a PL/SQL activity earlier in the process.
HTH,
Matt
WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
Have you read the blog at http://thoughts.workflowfaq.com ?
WorkflowFAQ support forum: http://forum.workflowfaq.com -
Hello everyone,
I would appreciate if someone can answer my question.
In my custom workflow, the user get a notification but i see that the "FROM" Label and the "DETAILS" Labels are empty. How to add appropriate values into those fields.
Thanks!!
JimHi,
Either define a default value for the attribute, or call the appropriate API (WF_ENGINE.SetItemAttr???), or populate an event parameter (if you are starting the process via a business event).
HTH,
Matt
WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
Have you read the blog at http://www.workflowfaq.com/blog ?
WorkflowFAQ support forum: http://forum.workflowfaq.com -
Complete Defunct HR Workflow Processes = Notification Spam?
We recently started a Request Set that includes the 'Complete Defunct HR Workflow Processes' Concurrent Program. The first day we spawned ~270 notifications to people, basically telling them that a prior Notification was being cancelled. These were Notifications the user did not click the 'OK' button after reading.
A week later (after a patching event and instance bounce), several thousand NOtifications were spawned, with basically the same message. When i look at the wf_notifications table, comparing begin and end dates to the timeframe these were being spawned, i only see ~200 normal everyday notifications having been sent. But, when i look at the wf_notification_out table, there i see NOtifications in the thousands. They seem to be related to Event oracle.apps.wf.notification.send; but i cannot see what triggered this event.
To make matters worse, some of these are NOtifications that had already been sent the previous week, only this time multiple (in some cases hundreds) of copies were sent. Same Notification, re-sent hundreds of time.
The timing seems to suggest an instance bounce done shortly before people reported a problem.
Can anyone shed any light on why this haoppened? And how to stop this ever happening again?Hi,
Did you run the purge routine after completing the concurrent request?
Matt
WorkflowFAQ.com - the ONLY independent resource for Oracle Workflow development
Alpha review chapters from my book "Developing With Oracle Workflow" are available via my website http://www.workflowfaq.com
Have you read the blog at http://www.workflowfaq.com/blog ?
WorkflowFAQ support forum: http://forum.workflowfaq.com
Maybe you are looking for
-
Error while deploying ear using Oracle weblogic 11g in local machine
Hi, Initially I installed Jdeveloper along with Weblogic and got the below error while deploying. Later I uninstalled Jdeveloper and weblogic, etc and installed a new weblogic on my local machine and tried to deploy ear. But still got the same error.
-
Server 2008 Fax Server console doesn't show outgoing faxes
We are sending faxes from Windows XP clients through our Server 2008 Fax Server. Most of the faxes are sent, however the Server Fax Console never shows any faxes as being sent. The Fax Console does show the Incoming faxes that have been received. Wha
-
How do I add a playlist to iTunes Match so that it'll appear on my Apple TV? It was appeared on it before but ever since I added some CDs to the playlist, it won't show anymore. Please help.
-
Tax_code and vat_tax_id in R12
Hi All, I am working in an Upgrade project and as we are aware the TAX tables with AR_ is now ZX_. Can someone please help me in giving an appropriate table replacement for AR_VAT_TAX_ALL_B? Below mentioned are the queries which need to be replaced a
-
I've just got a mac mini and have hooked it up to my new LCD television. I love the fact I can use Front Row on it but one thing is bothering me. When I want to listen to music on it the screen remains static as the music plays. Now I've used Apple T