<commit_before>package com.camunda.fox.client.impl.web;

import java.io.IOException;
import java.io.Serializable;

import javax.enterprise.context.Conversation;
import javax.enterprise.context.ConversationScoped;
import javax.enterprise.inject.Instance;
import javax.faces.context.FacesContext;
import javax.inject.Inject;
import javax.inject.Named;

import org.activiti.cdi.BusinessProcess;
import org.activiti.engine.RepositoryService;
import org.activiti.engine.repository.ProcessDefinition;

@ConversationScoped
@Named
public class TaskForm implements Serializable {

  private static final long serialVersionUID = 1L;

  private String url;

  private String processDefinitionId; 
  private String processDefinitionKey; 
  
  @Inject
  private BusinessProcess businessProcess;

  @Inject
  private RepositoryService repositoryService;

  @Inject
  private Instance<Conversation> conversationInstance;

  public void startTask(String taskId, String callbackUrl) {
    // Note that we always run in a conversation
    this.url = callbackUrl;
    businessProcess.startTask(taskId, true);
  }<commit_msg>HEMERA-2355: renamed CDI-Bean to "fox.taskForm"<commit_after>package com.camunda.fox.client.impl.web;

import java.io.IOException;
import java.io.Serializable;

import javax.enterprise.context.Conversation;
import javax.enterprise.context.ConversationScoped;
import javax.enterprise.inject.Instance;
import javax.faces.context.FacesContext;
import javax.inject.Inject;
import javax.inject.Named;

import org.activiti.cdi.BusinessProcess;
import org.activiti.engine.RepositoryService;
import org.activiti.engine.repository.ProcessDefinition;

@ConversationScoped
@Named("fox.taskForm")
public class TaskForm implements Serializable {

  private static final long serialVersionUID = 1L;

  private String url;

  private String processDefinitionId; 
  private String processDefinitionKey; 
  
  @Inject
  private BusinessProcess businessProcess;

  @Inject
  private RepositoryService repositoryService;

  @Inject
  private Instance<Conversation> conversationInstance;

  public void startTask(String taskId, String callbackUrl) {
    // Note that we always run in a conversation
    this.url = callbackUrl;
    businessProcess.startTask(taskId, true);
  }
{'fraction_non_alphanumeric': 0.07654867256637168, 'fraction_numerical': 0.002654867256637168, 'mean_word_length': 5.4415954415954415, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5218762', 'n_tokens_mistral': 636, 'n_tokens_neox': 621, 'n_words': 156}