<commit_before><commit_msg>added default producer for usergroupcallback and userinfo<commit_after>package org.jbpm.kie.services.cdi.producer;

import javax.enterprise.context.ApplicationScoped;
import javax.enterprise.inject.Alternative;
import javax.enterprise.inject.Produces;

import org.jbpm.services.task.identity.DefaultUserInfo;
import org.jbpm.services.task.identity.MvelUserGroupCallbackImpl;
import org.jbpm.shared.services.cdi.Selectable;
import org.kie.api.task.UserGroupCallback;
import org.kie.internal.task.api.UserInfo;

@ApplicationScoped
@Alternative
@Selectable
public class DefaultUserGroupInfoProducer implements UserGroupInfoProducer {

	private UserGroupCallback callback = new MvelUserGroupCallbackImpl(true);
	private UserInfo userInfo = new DefaultUserInfo(true);
	
	@Override
	@ApplicationScoped
	@Produces
	public UserGroupCallback produceCallback() {
		return callback;
	}

	@Override
	@ApplicationScoped
	@Produces
	public UserInfo produceUserInfo() {
		return userInfo;
	}

}
{'fraction_non_alphanumeric': 0.08151093439363817, 'fraction_numerical': 0.0, 'mean_word_length': 6.8671875, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6005783', 'n_tokens_mistral': 308, 'n_tokens_neox': 298, 'n_words': 58}