Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

title Get User Profile Info
@StarterEvent Details
// Styling participants with background colors is an experimental feature.
// This feature is available for users to test and provide feedback.
@Actor Client #FFEBE6
@Control EventsServiceResource#0747A6
@EC2  JobsTasks #E3FCEF
@RDS Database #007654

 @Starter(Client)
//GET`Get/getUserProfileInfoaddTask`
UserServiceResourceEventsServiceResource.get(getUserProfileInfogetEventDetails) {
DB."Connect to DB"
try{
if (userID == 0) {
userServiceImpl."get user profile using userId Token"
} else {
userServiceImpl."get user profile using userId"
}
"success = true"
}catch "Exception e" {
"catch exception if any";
} finally {
if (!success && conn != null){
"rollback"
}
}
return userprofiledto
  Database."Get Database Connection" 
  EventsServiceResource."eventId passed as part of Query Param"
  //`@params Connection, getEventDetails,eventId `
  EventsServiceImpl.getEventDetails{
    getEventNotes."eventId"{
      Database.eventNotesList{
        EventsServiceImpl."Return eventNotesList"
      }      
    }
    JobsTasks."Bypass job permission while entering account details manually to new job"
    JobsTasks."New/Edit Job" {
      Database."Add Job history and Tasks"
    }
    return JteiId
  }
  return Jteid
}