Hello,
We have a couple Request Processes that need to spawn Tasks for associated items, such as Cell Phone set up or Computer set up.
I need to pass request details from the Request to the Task since they are handled by different Groups and the Task owner may not have visibility to the Request itself.
I found a discussion - http://community.landesk.com/support/message/70450#70450 which I thought might solve my issue, but I am having trouble getting execution correct. It uses a Calculation in the Task Details.
In the most basic form the Caculation will work but when I try to get it to provide anything additional or more complete it fails and the Task Details are blank.
For example -- This small test works and populates the Task Details with the work "Test".
import System
static def GetAttributeValue(Process):
return String.Format ("Test")
For example -- This single variable test worked and populated the Task Details with "Computer Required - True".
import System
static def GetAttributeValue(Process):
return String.Format ("Computer Required - {0}",Process.Request._Computer)
These all fail to put any content in Task Details (Syntax check passes).
import System
static def GetAttributeValue(Process):
return String.Format ("Associated Request ID- {0}",Process.Request._newref)
return String.Format ("First Name - {0}",Process.Request._ADGivenName)
return String.Format ("Middle Name - {0}",Process.Request._MiddleName)
return String.Format ("Last Name- {0}",Process.Request._ADSurname)
return String.Format ("Computer Required - {0}",Process.Request._Computer)
import System
static def GetAttributeValue(Process):
return String.Format ("Associated Request ID- {0}. First Name - {1}. Middle Name - {2}. Last Name- {3}. Computer Required - {4}. ", Process.Request._newref, Process.Request._ADGivenName, Process.Request._MiddleName, Process.Request._ADSurname, Process.Request._Computer)
import System
static def GetAttributeValue(Process):
return String.Format ("New Hire Information -- First Name - {0}. Middle Name - {1}. Last Name- {2}. Computer Required - {3}. ",Process.Request._ADGivenName, Process.Request._MiddleName, Process.Request._ADSurname, Process.Request._Computer)
So I don't know if I have a code issue here or if I'm using incorrect attributes or...?
Any ideas are appreciated.
Thanks