Table of contents

Official Content

When using GXflow Custom Client with GeneXus Access Manager (GAM), you must modify the following object: WorkflowCheckGAMSession by removing comments of the source and adding the undefined variables.

The object source code must be as shown below:

If GAMSession.IsValid(&GAMSession, &GAMErrors)
  If Not &GAMSession.IsAnonymous
    &userCod = &GAMSession.User.Name.Trim().ToUpper()
    &error = WorkflowGenerateSession(&userCod, '')
    If &error.Code = 0
      &check = True

Also, the following variables must be created:

  • GAMErrors: Data type GAMError (Collection)
  • GAMSession: Data type GAMSession

WorkFlowGenerateSession code is as follows (you can download the code from file GenerateSession.xpz):

Parm(in: &userCod, out: &error);
&server.Connect(&userCod, '')

&error = &server.Error

If &server.Error.Code = 0
    &session.Set(WorkflowWebSession.SessionHandle, &server.Session)
    &session.Set(WorkflowWebSession.UserCode, &userCod)

Note: At execution time, the standard client application will automatically redirect to the object configured in Login Object for Web property, and you must link to wfmain object.

Last update: April 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant