Stephen,

That only tells you what they should have. Which is 100% fine for
Read, Read Restricted, and Fixed. However, Float is a very different
problem. All "Floating tokens" may already be in use, and the user may
in fact only have a "Read" at the time.

To my knowledge there is no "easy" way to know this with ARS workflow.
It can be done at the API level, but it is not trivial to get at that
environment in ARS 7.0.1. But I do see three options:

A) You should be able to do this via a DVF (data visualization field)
but it will require a Mid-Tier and some Java API coding to get the job
done.

B) You can write a command line tool and run it from your ARS server.
The tool will need to have an ARS Administrator login, have it connect
to the ARS server and it should be able to use the same kind of API
calls that you would put in the DFV to get the same information about
any user. Assuming you pass in the 'Login Name' of interest as a
command line parameter then this solution should work too.

C) If you have your User log file running (and everyone should, all
the time, IMHO) then you can grep/awk/parse your way through that file
and figure out what license the user currently has. Just string
parsing, but it is not trivial to do either. And there is a risk that
the file growth my be fast enough that the line you need could be
overwritten before you go parse for it too.

HTH

-- 
Carey Matthew Black
Remedy Skilled Professional (RSP)
ARS = Action Request System(Remedy)

Love, then teach
Solution = People + Process + Tools
Fast, Accurate, Cheap.... Pick two.


On Thu, Feb 21, 2008 at 11:28 AM, Heider, Stephen <[EMAIL PROTECTED]> wrote:
> Albert,
>
>  If I understand your question, couldn't you do a regular Set Fields from
>  the User form with a Set Field If set to:
>
>  'Login Name' = $USER$ AND ('License Type' = "Fixed" OR 'License Type' =
>  "Floating")
>
>  Set the value of the Login Name field from the User form to a zTmp field
>  on your form.  The next filter or active link would check to see if the
>  zTmp field was $NULL $ or not.  If not, then the user has a license to
>  write.
>
>  Stephen
>  Remedy Skilled Professional
>
>
>
>  -----Original Message-----
>  From: Action Request System discussion list(ARSList)
>  [mailto:[EMAIL PROTECTED] On Behalf Of Albert Bihler
>  Sent: Thursday, February 21, 2008 11:14 AM
>  To: [email protected]
>  Subject: Check within workflow for users licence type / state
>
>
>
> Hi list,
>
>  is there a way to check using workflow whether the user that
>  is running the workflow has currently a read, read (floting) or
>  write (floating) license?
>
>  Whenever a user leaves our main form we write some field
>  values to a user preferences form (on window close). This
>  works fine as long as the user has got a proper license. However
>  if the user only has a read token it fails with ARERR [8932]
>  "You do not have write license"
>
>  Possible solutions that are coming to my mind are:
>  - Do a direct sql instead of a push-field action. This is not nice
>   because we are talking of about 50 fields and I think this could
>   violate the license agreement.
>  - Push values to a new form and create always a new record there
>   Then let an escalation push the values to the users properties
>   form. Not nice because a lot of workflow and there is a time delay
>   because of the escalation.
>  - check for the users license and only save the fields when he has
>   a write token. Not nice either.
>
>  Any suggestions?
>
>  ARS 7.0.1
>  Solaris 10
>  Oracle 10gR2
>
>  Kind regards,
>  Albert

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org
Platinum Sponsor: www.rmsportal.com ARSlist: "Where the Answers Are"

Reply via email to