Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8481409
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:33:08+00:00 2026-06-10T19:33:08+00:00

I have a problem with the activiti engine, which should be simple to solve,

  • 0

I have a problem with the activiti engine, which should be simple to solve, but i can’t find the method to call to solve this problem:

My problem is, that every Task Event (org.activiti.engine.task.Event) returnes null by calling Event.getUserId();
If I take a look into the database I see that the database table ACT_HI_COMMENT has null as value for the column USER_ID_ for every row.

I generate these TaskEvents programmatically by calling (for example)

processEngine.getTaskService().addComment(task.getId(),    null, commentMessage);

processEngine.getTaskService().addUserIdentityLink(task.getId(), user.getId(), IDENTITY_LINK_OBSERVER);

I guess there is a simple method that I must call to solve this problem, something like processEngine.setCurrentUser(authenticatedUser.getId());

Any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T19:33:10+00:00Added an answer on June 10, 2026 at 7:33 pm

    Setting authenticatedUserId in the IdentityService should do the trick:

    processEngine.getIdentityService().setAuthenticatedUserId(user.getId());
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have problem with my android app, i searched but cannot find answer, i
First thing I know this is repeated question but I don't have problem in
I have a problem with my activity. This is my onCreate: case NORMAL: game
I have a problem to test my non activity-class which need the context of
I have a problem refreshing a ListView. I call my ListView Activity , I
I have some problem with Android AsyncTask. There is an Activity which contains some
I have the following problem: I have an Activity where a user can start
I have the following problem: I opened the activity A, from which I opened
I have a service that also contains an activity the problem is sometimes it
I try to go to previous Activity (Activity A) but have problem. Command to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.