Highlighted
Absent Member.
Absent Member.
319 views

Need to convert process.getTimeStamp() into something usable


I want to log the start of a workflow and send that into to Sentinel so
I can report on the workflow...

I am just having troubles converting what is returned using
process.getTimeStamp() to something usable...

When I call process.getTimeStamp() it returns an object and the value
is: Mon Apr 08 13:39:02 SAST 2013

I have tried Date.parse(process.getTimeStamp()) with no luck...

Next thing I will need to do is convert the object to a string then
split the string into the different components... But seems like such a
waste of effort...

Can anyone please help me convert what is returned to Unix time UTC...


--
ccikara
------------------------------------------------------------------------
ccikara's Profile: https://forums.netiq.com/member.php?userid=506
View this thread: https://forums.netiq.com/showthread.php?t=47496

Labels (1)
0 Likes
2 Replies
Highlighted
Absent Member.
Absent Member.

Re: Need to convert process.getTimeStamp() into something usable

On 04/08/2013 10:14 AM, ccikara wrote:
>
> I want to log the start of a workflow and send that into to Sentinel so
> I can report on the workflow...
>
> I am just having troubles converting what is returned using
> process.getTimeStamp() to something usable...
>
> When I call process.getTimeStamp() it returns an object and the value
> is: Mon Apr 08 13:39:02 SAST 2013
>
> I have tried Date.parse(process.getTimeStamp()) with no luck...
>
> Next thing I will need to do is convert the object to a string then
> split the string into the different components... But seems like such a
> waste of effort...
>
> Can anyone please help me convert what is returned to Unix time UTC...
>
>

Greetings,
If you have enabled the User Application to utilize "audit" then you
will have this kind of information automatically sent to Sentinel.

This page outlines all of the events we will sent when "auditing" is
enabled in the User Application:

https://www.netiq.com/documentation/idm402/agpro/?page=/documentation/idm402/agpro/data/b2iix14.html


You can not control the level. It is either on or off.



--

Sincerely,
Steven Williams
Lead Software Engineer
NetIQ
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Need to convert process.getTimeStamp() into something usable


Sorry Steven,

I should have been more descriptive with my problem.

What I have is a logging activity at the end of each workflow that puts
all the relavent workflow information into a JSON object, like who the
initiator is, what the reason for the request was, time of the request
etc.

I have then customised the collector in Sentinel to take this JSON
object and split it and assign the values to CustomerVals.

The reason I have had to do this is due to the requirement of needing to
report on requests made and who approved that request for each cost
centre in the org, and this is the way I decided to go so I could add
org info to the worfklow log so it can be reported on. We only have
Sentinel log manager and we cannot use the built-in reporting with IDM 4
due to our custom objects and how they are related.

So, what I need is a string value of the time the workflow was requested
and approved so I can then change that string back to a date in the
custom.js script for the collector so I can then report on workflows
based on request / approved times. All the info I need to report on is
in 1 log activity so it makes correlation easier i.e. linking request
event with approval event and pulling the correct data out of each...

Regards,
Craig Cikara


--
ccikara
------------------------------------------------------------------------
ccikara's Profile: https://forums.netiq.com/member.php?userid=506
View this thread: https://forums.netiq.com/showthread.php?t=47496

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.