The 1C:Enterprise developers forum

#1
People who like this: 0 Yes / 0 No
Active user
Rating: 5
Joined: Mar 29, 2016
Company: DND YAZILIM LTD.

I want to run the background task. Session parameters in the background does not work. I need a global variable to me. Can you help?

Edited: Hüseyin Çağrı Bayraktar - Jun 08, 2016 11:32 PM
 
#2
People who like this: 0 Yes / 0 No
Active user
Rating: 4
Joined: Apr 18, 2012
Company:

Hi.

Can you explain why session parameters don't work in the background tasks? I use them successfully.

Edited: Alexei Khatin - Jun 08, 2016 07:14 AM
 
#3
People who like this: 0 Yes / 0 No
Timofey Bugaevsky
Guest

Joined:
Company:

Hello, Hüseyin Çağrı Bayraktar!

You can pass a parameter into the background job and store the result of processing in one of metadata objects, for example in the information register.
You can also pass a temporary storage address into the background job, fill it inside the job, and then get the result from the temporary storage.

Would you please explain in more details what do you want to do?

 
#4
People who like this: 0 Yes / 0 No
Active user
Rating: 5
Joined: Mar 29, 2016
Company: DND YAZILIM LTD.

Dear Timofey,

My process is very complicated. I want use that global variable for out of loop. So, if use information register will generate a lot of traffic between the server and the database. Do you have another solution?

Thank you for replying.

 
Subscribe
Users browsing this topic (guests: 2, registered: 0, hidden: 0)