title: Firebase get Data From Multilevel Random Id
body: <p>This is my Firebase database  setup:</p>
  
  <p><img src="https://i.stack.imgur.com/MCVly.png" alt="Firebase database"></p>
  
  <p>This successfully puts my workflow name to intent i.      </p>
  
  <pre><code>adapter = new FirebaseRecyclerAdapter&lt;Workflow, WorkflowHolder&gt;(
              Workflow.class,
              R.layout.list_row,
              WorkflowHolder.class,
              ref) {
          @Override
          public void populateViewHolder(WorkflowHolder holder, Workflow workflow, final int position) {
              holder.setName(workflow.getName());
              holder.setNextdue(workflow.getNextdue());
              holder.setLastcompleted(workflow.getLastcompleted());
              final String workflow_name = workflow.getName();
  
              holder.itemView.setOnClickListener(new View.OnClickListener() {
                  @Override
                  public void onClick(View v) {
                      AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);
                      builder.setTitle("Begin Workflow");
                      builder.setMessage("Are you sure you are ready to begin workflow " + workflow_name + "?");
                      builder.setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {
                          public void onClick(DialogInterface dialog, int id) {
  
  
  
  
                              Intent i = new Intent(MainActivity.this, CompleteWorkflow.class);
                              i.putExtra("workflow_id", adapter.getRef(position).toString());
                              i.putExtra("workflow_name", workflow_name);
                              startActivity(i);
                              finish();
                              dialog.dismiss();
                          }
                      });
                      builder.setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener() {
                          public void onClick(DialogInterface dialog, int id) {
                              //TODO
                              dialog.dismiss();
                          }
                      });
                      AlertDialog dialog = builder.create();
                      dialog.show();
                  }
              });
          }
      };
  
      workflows.addItemDecoration(new DividerItemDecoration(this, LinearLayoutManager.VERTICAL));
  
      workflows.setAdapter(adapter);
  </code></pre>
  
  <p>However, I would like all the tasks of the workflow, so basically be able to put a json of all the tasks to intent i. Is there any way in which this possible?</p>
  
  <p>Also, my Workflow.class is as such:</p>
  
  <pre><code>public class Workflow {
  private String name, lastcompleted;
  private Long nextdue;
  
  public Workflow(){
  }
  
  public Workflow(String name, Long nextdue, String lastcompleted) {
      this.name = name;
      this.nextdue = nextdue;
      this.lastcompleted = lastcompleted;
  }
  
  public String getName() {
      return name;
  }
  
  public void setName(String name) {
      this.name = name;
  }
  
  public Long getNextdue() {
      return nextdue;
  }
  
  public void setNextdue(Long nextdue) {
      this.nextdue = nextdue;
  }
  
  public String getLastcompleted() {
      return lastcompleted;
  }
  
  public void setLastcompleted(String lastcompleted) {
      this.lastcompleted = lastcompleted;
  }
  </code></pre>
  
  <p>}</p>
  
  <p>Any thoughts on how to restructure that?</p>