Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

Set User Owners For Asset Component

Created: 13 Jun 2012 | 13 comments
Language Translations
Collaborators: SymantecWorkflowTeam
SymantecWorkflowTeam's picture
0 0 Votes
Login to vote

This component has not yet been documented by the Workflow community.

Earn Connect points by contributing your knowledge about this component to the Workflow community. 



Component definition

[Describe this component in one or two sentences.]

Component icon

[Insert component icon Image file here.]

Definition of component input value or values

[Insert a table that lists the name and description of input values, including example formats. Modify the following table as needed. Insert additional tables as needed.]

Table: Input values
Input value name Input value data type Example format
[Input 1: mail address] [Text] [user@domain.com]
[Input 2: account name] [Text] [domain\user]

 

Definition of component output value or values

[Define the output value data types. If multiple output data types exist, you can insert a table.]

Connection information

[If this component connects to a process or product outside Workflow, insert the definition of the connection string and/or authentication requirements to make that connection.]

Component settings

[Describe any setting options that change the way this component behaves.]

 

Use case

[Name each use case that you include below.]

[Example 1]

[Describe the use case. Insert screen shots or package files. Insert a description of how the settings are configured. Insert additional information about the use case that you are submitting.]

[Example 2]

[Describe the use case. Insert screen shots or package files. Insert a description of how the settings are configured. Insert additional information about the use case that you are submitting.]

Comments 13 CommentsJump to latest comment

kevinradler's picture

Any chance I could get an example of how to call this component? I am trying to set the an asset's owner from within Workflow; however, I cannot seem to get the configuration right.

-11
Login to vote
reecardo's picture

The main thing to remember when using any generated resource component is to have a Create SMP Credentials component before it (this basically directs which SMP you're working against). Also, you need to know the guid of the asset you're trying to set the owners of.

-9
Login to vote
kevinradler's picture

reecardo,

Check and check. Let me give you some background on what I am doing. I am updating the SD.AssetViewProject to allow analysts to update the asset's location, status, and ownership directly from Service Desk. I can get the status and location to update with no problem and the component I am calling to update the ownership doesn't error out, it just doesn't make the assignment.

I know the asset I am trying to modify and I have written an integration that converts the SD guid to the SMP guid so as to assign the proper owner; however, it doesn't actually create the association.

This component is asking for the asset guid, which I have and I am assigning the SMP user guid to the id field of the Set Users for Asset Component in the user Owners field. My question becomes, am I populating the right user value in the user Owners field of this component?

 

-4
Login to vote
kevinradler's picture

reecardo,

Here a few screenshots that shed some light on my modifications. I still cannot seem to get this component to successfully write the owner to the asset record in the SMP. Any thoughts or suggestions or samples would be great. Thank you.

Modifications to the Edit Equipment form

AssetView_1.jpg

Screenshot highlighting the three components that edit the asset information and then create a process message.

AssetView_2.jpg

The Data Mapping for the user Owners field in the Set User Owners For Asset Component

AssetView_3.jpg

-10
Login to vote
kevinradler's picture

UPDATE

I was testing my changes this morning and it appeared the set user component worked...once. I removed the owner of my test asset and tried a second and third time, but no go. Any thoughts on this behavior where it seems to write the record only once?

I also tried writing the owner to an asset that already had an owner set to 100%, but the changes didn't take. Do I need to remove the prior ownership first, or does the component handle doing this?

Thanks.

-9
Login to vote
Blade_CO's picture

Can you attach a sample of the workflow.  I am trying to do the exact same thing.

0
Login to vote
kevinradler's picture

Blade_CO:

Attached is the latest copy of my workflow project. Once I complete this basic editing portion, I would like to create two more functions--specifically for the asset manager role--where assets can be bulk added and edited through Service Desk.

AttachmentSize
SD.AssetViewProject.package 2.88 MB
0
Login to vote
Blade_CO's picture

Thank you kevin, I will try it out and let you know.

0
Login to vote
dpbees's picture

Where/how are you confirming the ownership assocation?  With a query to the database or somewhere in  the SMP Console?

0
Login to vote
dpbees's picture

For example if you are looking in the Edit Configuration Item sceen, it does not always reflect the true/current assocations, even though they have been set correctly.  (At least after changing them with this workflow componont)

Not sure if this is what is happening for you, but it caused me some confusion when we went to 7.1.

There is a job called Clean Ownership that typically runs on 12 hour intervals, that cleans this up.

0
Login to vote
kevinradler's picture

dpbees,

I've definitely seen the Clean Ownership task; however, haven't really dug into it to see what it's doing. Is it quite possible, then, that my workflow is working as intended, yet isn't updating ownership immediately based on when the Clean Ownership task runs?

0
Login to vote
dpbees's picture

That is my guess.  After you run your workflow check the ownership either with a query showing the association, or check like this in the SMP console:

Home > Service and Asset Management > Manage Configuration Items

Make sure the top folder "CI Management" is selected.

Search for the asset by serial number.

The screen that comes up should show the new owner, but if you go into edit the record it will still show the old owner until after you run clean ownership.

You could also check by running the clean ownership job after your workflow completes.

 

 

+1
Login to vote
kevinradler's picture

Running the Clean Ownership task did the trick. Thank you for the suggestion and solution.

0
Login to vote